Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-111

QtPropertyBrowser subclass QtVariantPropertyManager and QtVariantEditorFactory gives linker error because of Q_OBJECT (Qt Property Browser Variant Manager Editor Factory)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Some Release
    • Fix Version/s: None
    • Component/s: Property Editor
    • Labels:
      None
    • Environment:
      Windows XP Service Pack 3

      Description

      I'm subclassing QtVariantPropertyManager and QtVariantEditorFactory. I get these two linker errors from Visual Studio 2005 with Qt 4.5.3 (even though the MOC files ARE included):

      1>moc_VariantEditorFactoryExtended.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QtVariantEditorFactory::staticMetaObject" (?staticMetaObject@QtVariantEditorFactory@@2UQMetaObject@@B)

      1>moc_VariantPropertyManagerExtended.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QtVariantPropertyManager::staticMetaObject" (?staticMetaObject@QtVariantPropertyManager@@2UQMetaObject@@B)

      This is the same as QTSOLBUG-105, which was closed...

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            chriswmorris Chris Morris
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes