1 2 3 4 5 6 7 8 9 10
#include <QObject> // this file exists only such that cmake qt automoc is appeased class AutomocMe { Q_OBJECT private: virtual void foo() = 0; AutomocMe() {} };