我的.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"
我错过了什么?
答案 0 :(得分:3)
您的.pro
文件中应该包含以下两行:
include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment()