[Development] [EXTERNAL EMAIL] Could support for C be added to Qt?

samuel ammonius sfammonius at gmail.com
Mon Sep 12 20:44:23 CEST 2022

Hi Mark,

I don't think SWIG supports generating C from C++ or vice versa. Its
website says
it can parse to XML, but that might not be very useful since Qt is so
strict on its
code style rules <https://wiki.qt.io/Qt_Coding_Style>.

About the hourglass pattern, I'll put features that require more recent
versions of C
inside #ifdef statements so that older versions of C can still use the
library, but it will
mean that versions before C11 will have to type the full names of
overloaded functions,
which will look like this:

QPushButton_new_QIcon_QString_QObject(myicon, mystr, mywindow);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20220912/ba1f713a/attachment.htm>

More information about the Development mailing list