Questions tagged «qobject»

24
未解析的外部符号“ public:虚拟结构QMetaObject const * __thiscall父对象
我从QObject继承了一个类: class Parent: public QObject { Q_OBJECT QObject* cl; public: Parent(QObject *parent=0):QObject(parent) { cl = NULL; } QObject* getCl() const { return cl; } void setCl(QObject *obj) { cl = obj; } }; 但是当我写: Parent ev; 我收到以下错误: main.obj:-1: error: LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall …
74 c++  qt  qobject 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.