[英]Qt GUI application build settings in Qt Creator
While I develop a small GUI application using Qt Creator (MinGW in Windows), the compilation is successful, and the binary is generated. 当我使用Qt Creator(Windows中的MinGW)开发小型GUI应用程序时,编译成功,并且生成了二进制文件。 But application is not ran, it gets crashed.
但是应用程序没有运行,它崩溃了。
Below is my configuration setup: Qt Version: 4.8.2 MinGW: compilerpath: C:\\MinGW\\bin\\g++
debugger: C:\\MinGW\\bin\\gdb
以下是我的配置设置: Qt版本: 4.8.2 MinGW:编译器路径:
C:\\MinGW\\bin\\g++
调试器: C:\\MinGW\\bin\\gdb
If I don't use Qt classes ( QApplication
, QWidget
or QString
), it works fine. 如果我不使用Qt类(
QApplication
, QWidget
或QString
),它将很好地工作。 I mean if I use std
lib functions, it works fine. 我的意思是,如果我使用
std
lib函数,它将正常工作。
Can any one suggest please? 有人可以建议吗?
What is your g++ version? 您的g ++版本是什么? You need to use g++-4.4 with Qt binaries downloaded from their site.
您需要将g ++-4.4与从其站点下载的Qt二进制文件一起使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.