QT5出现问题:QtGui/QApplication: No such file or directory

For QT 5

Step1: .pro (in pro file, add these 2 lines)

QT       += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

Step2: In main.cpp replace code:

#include  

with:

#include 

来源: http://stackoverflow.com/questions/8995399/error-qapplication-no-such-file-or-directory
下面是.pro文件
 
    
  1. QT += core gui
  2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  3. TARGET = trafficSigns
  4. TEMPLATE = app

你可能感兴趣的:(嵌入式,计算机视觉)