Hi all.
I have to use the tr() function so i include the Q_OBJECT macro in my class declaration. But when I compile I get the errors:
Code:
debug/moc_xmlread.cpp: In member function ‘virtual void* XmlRead::qt_metacast(const char*)’: debug/moc_xmlread.cpp: In member function ‘virtual int XmlRead::qt_metacall(QMetaObject::Call, int, void**)’:
My header file:
Code:
If I remove the Q_OBJECT macro the compiler cant find the tr() function... What am I doing wrong?