首页 > 移动平台 > 详细

QT5: QApplication, no such file or directory

时间:2016-03-28 15:30:16      阅读:226      评论:0      收藏:0      [点我收藏+]

In QT5, when I use this: #include<QApplication>, QT tells :no such file or directory, even though it is all right for previous version of QT.

It turns out these files QApplication and so on have been moved to other places.

How to correct?

#include <QApplication> --------------------> #include <QWidgets/QApplication>

#include <QDialog> --------------------> #include <QWidgets/QDialog>

#include <QLabel> --------------------> #include <QWidgets/QLabel>

.....................blabla


when I do this, still there are some errors, I dunno...........


another way is to change the .pro file, make it adapt to qt4.


In QT gui, the application is necessary for a program, it is used for managing the program application resources.

QT5: QApplication, no such file or directory

原文:http://www.cnblogs.com/bhlsheji/p/5328883.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!