Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] moc adds QDesignerCustomWidgetCollectionInterface
Talei last edited by
I have normal widget with custom widgets in it (using Promote mechanism, NO QDesigner Plugins in application). Custom widgets are not QDesigner plugins and in code there is no reference to QtDesigner or QDesignerCustomWidgetCollectionInterface.
When application is compiled moc generates ui_*.h for .ui files and in one of those headers I see include like this:
Question: Why QtCreation / moc adds QDesignerCustomWidgetCollectionInterface into ui generated header? This happens for Mingw/Android and probably for MSVC (not tested yet).
My custom class name is: "RegistrationDialog".
PS. I tried to "clean" project, basically deleting everything auto generated, any leftover files etc. so only ui/h/cpp files are left. Same issue.
Solution: My fault, in ui base widget class was not QWidget but subclass of QWidget and QtCreator treated this class as extension.
<widget class="mywidget" name="RegistrationDialog">
<widget class="QWidget" name="RegistrationDialog">
BTW. it's issue with uic not moc.