Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的.pro文件:
.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"
#include "qtquick2applicationviewer.h"
我错过了什么?
您的文件中应该有这两行.pro:
include(qtquick2applicationviewer/qtquick2applicationviewer.pri) qtcAddDeployment()