“void value not ignored as it ought to be” - Qt/C++
问题 I have this simple "interface" for some plugins I want to develop, it looks like: class TestPluginBase : public QObject { Q_OBJECT public: TestPluginBase(); qint64 returnType(){return PluginType;} protected: qint64 PluginType; }; And some other classes which implement the "interface" like: class TestPluginONE : public TestPluginBase { public: TestPluginONE() {this->PluginType =1;} qint64 returnType() {return this->PluginType;} }; Then I have another function which suppose to load different