Error QApplication: no such file or directory

前端 未结 11 1821
挽巷
挽巷 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 06:54

    In Qt5 you should use QtWidgets instead of QtGui

    #include      // incorrect in QT5
    #include     // correct in QT5
    

    Or

    #include     // incorrect in QT5
    #include     // correct in QT5
    

提交回复
热议问题