我的.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"
我错过了什么?
.pro
文件中应该有这两行:
include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment()