Error QApplication: no such file or directory

前端 未结 11 1851
挽巷
挽巷 2021-01-30 06:44

I have installed C++SDK that have Qt but when I try compiling a code linking QApplication it gives me the error:

Error QApplication: no such file or directory
         


        
11条回答
  •  不知归路
    2021-01-30 07:09

    In Qt 5 you now have to add widgets to the QT qmake variable (in your MyProject.pro file).

     QT += widgets
    

提交回复
热议问题