今天遇到了一個錯誤
詳細信息如下
sendfile.cpp:3:39: error: type 'QObject' is not a direct or virtual base of 'SendFile'
在QtCreator中報錯
很迷惑,為啥不能這樣寫
SendFile是我自己定義的一個類
問題解決方法:
加上繼承QObject類
今天遇到了一個錯誤
詳細信息如下
sendfile.cpp:3:39: error: type 'QObject' is not a direct or virtual base of 'SendFile'
在QtCreator中報錯
很迷惑,為啥不能這樣寫
SendFile是我自己定義的一個類
加上繼承QObject類
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。