From ee69c57ac9a79a675f2dd6f5f74a98cbe4031cb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Tue, 7 Mar 2023 23:56:55 +0800 Subject: [PATCH] update --- .gitignore | 3 ++- example/example.pro | 18 +++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 4fe0f997..66968343 100644 --- a/.gitignore +++ b/.gitignore @@ -42,4 +42,5 @@ target_wrapper.* # QtCreator CMake CMakeLists.txt.user* -src/build-preset/plugins.qmltypes \ No newline at end of file +src/build-preset/plugins.qmltypes +bin \ No newline at end of file diff --git a/example/example.pro b/example/example.pro index 5eb613fb..7c48cbf8 100644 --- a/example/example.pro +++ b/example/example.pro @@ -8,9 +8,17 @@ SOURCES += \ RESOURCES += qml.qrc -qnx: target.path = /tmp/$${TARGET}/bin -else: unix:!android: target.path = /opt/$${TARGET}/bin -!isEmpty(target.path): INSTALLS += target +#qnx: target.path = /tmp/$${TARGET}/bin +#else: unix:!android: target.path = /opt/$${TARGET}/bin +#!isEmpty(target.path): INSTALLS += target -HEADERS += \ - stdafx.h +# Additional import path used to resolve QML modules in Qt Creator's code model +QML_IMPORT_PATH = + +# Additional import path used to resolve QML modules just for Qt Quick Designer +QML_DESIGNER_IMPORT_PATH = +CONFIG(debug,debug|release) { + DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../bin/debug) +} else { + DESTDIR = $$absolute_path($${_PRO_FILE_PWD_}/../bin/release) +}