MeVisLab / pythonqt

Dynamic Python binding for Qt Applications
https://mevislab.github.io/pythonqt/
GNU Lesser General Public License v2.1
251 stars 89 forks source link

Fails to build with 'PYTHONQTALL_CONFIG=PythonQtCore' #200

Open iakov opened 7 months ago

iakov commented 7 months ago

Generated files for core component (com_trolltech_qt_core/ folder) contain #include "qwidget.h" and other similar includes that are not part of the core module. Probably, this is an issue with typsystem_core.xml, that has type declarations for QTextDocument and other types/enums from QtGui.

usiems commented 7 months ago

Yes, it seems the include of QTextDocument is necessary because of Qt namespace functions convertFromPlainText and mightBeRichText. These would need to be moved to a different wrapper object to fix this. This can't be easily accomplished in a generic manner, if I remember the parser code correctly. (Everything is parsed in one go, and everything from the same namespace is pooled into one object, without consideration for the original Qt package.) I might be wrong, though.