I hadn't really thought of a plan for that, but one way it could be done is
to create a program that reads the C++ headers and generates their C
counterparts in a separate file, and then edit the C++ header to say
something like:

#ifndef __cplusplus
#include "qpushbutton_c.h"
#else
class QPushButton {}
#endif

I'm not sure weather it would be best for the program's output to be
included in the git repositories, or for the program to be just ran by
cmake while Qt is being compiled. I definitely can't go over all of Qt
to add the C bindings myself, but I'd be happy to create and maintain
something like this if it would work.
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to