class CHIProjectData : public QObject { public: CHIProjectData(); CHIProjectData(QMap aProjectData, CHIAkmMetaData*
In my case the problem was that the Q_OBJECT macro silently introduces a private: specifier, even within a struct:
Q_OBJECT
private:
struct myClass : public QObject { Q_OBJECT // everything here is private now... }