Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] moc adds QDesignerCustomWidgetCollectionInterface
Qt 6.11 is out! See what's new in the release blog

[Solved] moc adds QDesignerCustomWidgetCollectionInterface

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 552 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello,
    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:

    #include "QtDesigner/QDesignerCustomWidgetCollectionInterface"

    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.
    was:
    <widget class="mywidget" name="RegistrationDialog">
    should be
    <widget class="QWidget" name="RegistrationDialog">

    BTW. it's issue with uic not moc.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved