wiki:PacpusQtFaq

Pacpus components must inherit QObject

Components that use the input / output mechanism of Pacpus must inherit QObject:

  • Take care that QObject requires to be first in multiple inheritance (see extracted documentation below).
  • Don't forget the macro Q_OBJECT in the class declaration
Multiple Inheritance Requires QObject to Be First

If you are using multiple inheritance, moc assumes that the first inherited class is a subclass of QObject. Also, be sure that only the first inherited class is a QObject.
// correct
class SomeClass : public QObject, public OtherClass
{
    ...
};
Virtual inheritance with QObject is not supported. 
Last modified 8 years ago Last modified on 02/14/16 11:18:27
Note: See TracWiki for help on using the wiki.