qt pro conf

为不同构建模式添加目标生成文件后缀

CONFIG(debug, debug|release) {
    TARGET = $$join(TARGET,,,d)
}
$$[QT_INSTALL_BINS]
$$[QT_INSTALL_QML]
$$[QT_INSTALL_LIBS]
$$[QT_INSTALL_PLUGINS]
$$[QT_INSTALL_PREFIX]
Note: from the qmake documentation, squared brackets should be used for qmake properties ($$[])

QT_DEBUG_PLUGINS=1
QML_IMPORT_TRACE=1

qt 多版本存在时需要设置

//qt
QCoreApplication::setLibraryPaths

//qml
QQmlEngine->addImportPath
QQmlEngine->addPluginPath

posted @ 2020-07-13 10:09  學海無涯  阅读(260)  评论(0编辑  收藏  举报