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

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

相关文章:

  • 2022-01-13
  • 2021-10-17
  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-24
  • 2021-06-23
  • 2022-12-23
  • 2021-09-11
  • 2021-05-08
  • 2021-12-16
相关资源
相似解决方案