0

我的.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"

我错过了什么?

4

1 回答 1

3

您的文件中应该有这两行.pro

include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
qtcAddDeployment()
于 2013-10-30T11:54:00.030 回答