自己皇帝感

をください

Qt コンストラクタ リンカエラー

Mainのクラスじゃない自作のWidgetを使おうとすると、コンストラクタが未解決になった。
https://forum.qt.io/topic/24012/error-lnk2019-unresolved-external-symbol/8

I often get such errors, 99.99% of the time it is solved by clicking "clean all" then "run qmake" then "rebuild all".

クリーンしてqmakeの実行してリビルドして実行すれば治った。makefileが悪かったらしい