抽象類不能實例化;
當遇見這種錯誤,先查看是哪個類導致的該錯誤;
查看該類的繼承關係;可以從最新添加的繼承關係查起;
找到純虛函數即可;
將純虛函數在該類中重定義即可解決;
結合我的錯誤時,父類中有純虛函數:virutal void statuschanged (int status)=0;
我在類中重新申明:void statuschanged(const int status);
在cpp文件中定義:
void ICTestUI::statuschanged (const int status)
{
emit new status(status);//該函數我已經在signals中定義過了;emit爲發送信號;
}