class CHIProjectData : public QObject
{
public:
CHIProjectData();
CHIProjectData(QMap<QString,QString> aProjectData,
CHIAkmMetaData* apAkmMetaData = 0,
QObject* parent = 0);
private:
QMap <QString,QString> m_strProjectData;
CHIAkmMetaData* m_pAkmMetaData;
};
CHIProjectData::CHIProjectData(QMap<QString,QString> aProjectData,
CHIAkmMetaData* apAkmMetaData,
QObject* aParent)
:
QObject(aParent)
{
m_strProjectData = aProjectData;
m_pAkmMetaData = apAkmMetaData;
}
爲什麼它帶來的「‘的QObject :: QObject的’不能訪問類的QObject的「聲明爲private成員」錯誤?「的QObject :: QObject的」不能訪問類中聲明私有成員「的QObject」
是什麼原因造成的錯誤?什麼線觸發它? – 2010-08-17 22:41:31
爲什麼不使用初始化器列表初始化所有成員? – GManNickG 2010-08-17 22:50:53
@Charles:錯誤指向CHIProjectData類聲明的最後一行。 – Sulla 2010-08-17 22:55:47