错误:qtquick2applicationviewer.h:没有这样的文件或目录

时间:2013-10-30 11:42:16

标签: qt qml qt5 qtquick2

我的.pro文件:

TEMPLATE = app
TARGET = qmllistproperties
INCLUDEPATH += .
CONFIG += qt plugin
QT += qml quick

# Input
HEADERS += aa.h DummyClass.h
SOURCES += aa.cpp DummyClass.cpp

已将其包含在.cpp中,如:#include "qtquick2applicationviewer.h"

我错过了什么?

1 个答案:

答案 0 :(得分:3)

您的.pro文件中应该包含以下两行:

include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment()