QApplication file not found

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

如下的代码,开头的前三行代码都报错,并且报错信息一样:
QApplication file not found

#include
#include
#include
int main(int argc,char *argv[])
{
    QApplication a(argc,argv);
    QDialog w;
    QLabel label(&w);
    label.setText("Hello World!你好 Qt!");
    w.show();
    return a.exec();
}

解决办法:

头文件改成:

#include
#include
#include

转载于:https://my.oschina.net/u/1771419/blog/1799513

你可能感兴趣的:(QApplication file not found)