Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/qt/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ QwtPolar库错误Qt Creator_C++_Qt_Qt Creator_Qwt_Qwtpolar - Fatal编程技术网

C++ QwtPolar库错误Qt Creator

C++ QwtPolar库错误Qt Creator,c++,qt,qt-creator,qwt,qwtpolar,C++,Qt,Qt Creator,Qwt,Qwtpolar,我的QwtPolar库有问题 我使用的是Qt5.3,Qwt6.1工作正常 我使用以下方法构建QwtPolar: qmake make make install 当我尝试运行QwtPolar示例时,出现以下错误: QWidget: Must construct a QApplication before a QPaintDevice 我已经在Qt论坛和stackoverflow上读了很多帖子,但我不知道发生了什么以及如何解决它 注意:我读了一些关于混合调试和发布模式的文章,但我不知道构建Qw

我的QwtPolar库有问题

我使用的是Qt5.3,Qwt6.1工作正常

我使用以下方法构建QwtPolar:

qmake 
make
make install
当我尝试运行QwtPolar示例时,出现以下错误:

QWidget: Must construct a QApplication before a QPaintDevice
我已经在Qt论坛和stackoverflow上读了很多帖子,但我不知道发生了什么以及如何解决它

注意:我读了一些关于混合调试和发布模式的文章,但我不知道构建Qwt使用了什么模式以及如何更改它

如果有人能帮助我,我将不胜感激

我正在使用Windows8.1

对不起我的英语


谢谢。

我很久以前也遇到过同样的错误。我将尝试在我的机器上重复您的问题,同时尝试以下方法(其中一个应该会有帮助):

  • 从调试模式切换到发布模式(反之亦然)并构建
  • 在项目配置选项卡和构建中禁用“影子构建”
  • 重建项目

通过重新编译qwtpolar库,问题得以解决。

感谢您的回答。-在发布模式下,我得到以下错误:
QWidget:必须在QPaintDevice之前构造QApplication
,在调试模式下,我得到以下错误:
错误:找不到-lqwtpolard
-我试图禁用“影子构建”,但仍然得到错误。-我尝试了“全部清理”并重建项目,但没有任何改变。viddik13我通过重新编译qwtpolar解决了问题。我不知道以前发生了什么,我想我在编译步骤上做错了什么。不管怎样,谢谢你的帮助。怎么样?你能提供更多的细节吗?