Qt4到Qt5移植问题

 

  • error: QApplication: No such file or directory #include “QApplication”

  • 解决方法 :

        在工程*.pro文件中添加:
        greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

 

posted @ 2020-04-19 07:36  sgggr  阅读(212)  评论(0编辑  收藏  举报