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

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Some Release
    • Property Editor
    • None
    • 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

            Unassigned Unassigned
            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