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
转载请注明出处并保持作品的完整性,谢谢