1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef MYWRAPOBJECT_H #define MYWRAPOBJECT_H #include <QObject> #include "myinterface.h" class MyWrapObject : public QObject, MyInterface { Q_OBJECT Q_INTERFACES(MyInterface) public: explicit MyWrapObject(QObject* parent = 0) : QObject(parent) { } }; #endif