Qt-interest Archive, February 2008
Re: MOC: missing "staticMetaObject"
Message 1 in thread
Eric Methorst schrieb:
> On Thursday 31 January 2008 21:44:34 Ionathan wrote:
> I had this a while ago too. iirc it was either forgetting to use the Q_OBJECT
> macro in the derived class, #include <QObject>, actually deriving the
> subclass from QWidget derived class and/or a complete rebuild.
>
> One of those finally solved it.
>
> hih,
> happy coding,
> Eric
>
>
>> Hello group:
>>
>> I have a small problem ...
>>
>> moc_resulttable.cpp:41: error: âstaticMetaObjectâ is not a member of
>> âUi::ResultFormâ
>> moc_resulttable.cpp: In member function âvirtual void*
>> CResultTable::qt_metacast(const char*)â:
>> moc_resulttable.cpp:58: error: âqt_metacastâ is not a member of
>> âCResultTable::qt_metacast(const char*)::QMocSuperClassâ
>> moc_resulttable.cpp: In member function âvirtual int
>> CResultTable::qt_metacall(QMetaObject::Call, int, void**)â:
>> moc_resulttable.cpp:64: error: âqt_metacallâ is not a member of
>> âCResultTable::qt_metacall(QMetaObject::Call, int, void**)::QMocSuperClassâ
>> make: *** [moc_resulttable.o] Fehler 1
>>
>>
>> This is an error message I received "making" my project. I have a
>> "resulttable.ui" which generates an ui_resulttable.h
>>
>> the class definition there is:
>>
>> "
>> class Ui_ResultForm
>> {
>>
>> public:
>> QPushButton *HelpPushButton;
>> QWidget *layoutWidget;
>> QGridLayout *gridLayout;
>> // ... much code
>> } ;
>>
>> The class is inherited within "resulttable.h" and "resulttable.cpp" ...
>>
>> can somebody please tell me where this error comes from
>>
>> If necessary I can provide more code ... ;)
>>
>> tnx JÃrg
>>
>>
tnx - I did a redesign - and now it worked ... don't ask me for details
:) JÃrg
--
[ signature omitted ]
Message 2 in thread
Eric Methorst schrieb:
> On Thursday 31 January 2008 21:44:34 Ionathan wrote:
> I had this a while ago too. iirc it was either forgetting to use the Q_OBJECT
> macro in the derived class, #include <QObject>, actually deriving the
> subclass from QWidget derived class and/or a complete rebuild.
>
> One of those finally solved it.
>
> hih,
> happy coding,
> Eric
>
>
>> Hello group:
>>
>> I have a small problem ...
>>
>> moc_resulttable.cpp:41: error: âstaticMetaObjectâ is not a member of
>> âUi::ResultFormâ
>> moc_resulttable.cpp: In member function âvirtual void*
>> CResultTable::qt_metacast(const char*)â:
>> moc_resulttable.cpp:58: error: âqt_metacastâ is not a member of
>> âCResultTable::qt_metacast(const char*)::QMocSuperClassâ
>> moc_resulttable.cpp: In member function âvirtual int
>> CResultTable::qt_metacall(QMetaObject::Call, int, void**)â:
>> moc_resulttable.cpp:64: error: âqt_metacallâ is not a member of
>> âCResultTable::qt_metacall(QMetaObject::Call, int, void**)::QMocSuperClassâ
>> make: *** [moc_resulttable.o] Fehler 1
>>
>>
>> This is an error message I received "making" my project. I have a
>> "resulttable.ui" which generates an ui_resulttable.h
>>
>> the class definition there is:
>>
>> "
>> class Ui_ResultForm
>> {
>>
>> public:
>> QPushButton *HelpPushButton;
>> QWidget *layoutWidget;
>> QGridLayout *gridLayout;
>> // ... much code
>> } ;
>>
>> The class is inherited within "resulttable.h" and "resulttable.cpp" ...
>>
>> can somebody please tell me where this error comes from
>>
>> If necessary I can provide more code ... ;)
>>
>> tnx JÃrg
>>
>>
thanks Eric, I did a redesign - and now it works ... used in particular
the example of the book of Blanchette as a pattern! Good book! J.
--
[ signature omitted ]