Must construct a QApplication before a QWidget

后端 未结 2 933
无人共我
无人共我 2020-12-11 10:20

Everywhere only just \"before QPaintDevice\" questions and nowhere is my error. So, here we go.

I need an extern QWidget to be able to get access to it from outside

2条回答
  •  一向
    一向 (楼主)
    2020-12-11 10:36

    Maybe not helping the former author, but others facing the problem. I simply got this error by mistaking a debug-library with a release one. So check your linker settings, if you are sure the implementation is done right (first instancing application and then using widgets).

提交回复
热议问题