fatal error: QtGui/QApplication: No such file or directory

前端 未结 5 1464
無奈伤痛
無奈伤痛 2021-02-13 03:26

I\'m using Qt Creator, and this line is generated automatically by the Qt Creator:

#include

But, why am I getting this me

5条回答
  •  情话喂你
    2021-02-13 04:19

    This is a version problem.to fix,

    • you need to add QT += widgets in the .pro file
    • and run qmake

    • and also use #include instead of #include

提交回复
热议问题