Rebuilding again and again to view the imported QML file changes

不羁岁月 提交于 2019-12-08 04:13:18

You can make two independent qrc files, one for debug which is only includes resources like sounds, images, fonts and ... and another qrc for release which includes qml files too. Then you can use point to the qml files relatively with your current working directory (could be set in Build & Run pane) without need to include them in qrc which requires time consuming compilation and linkage. Also be aware, the root qml file should be pointed by relative (or absolute path) from C++ side, and no other changes are required to other qml files and they works perfectly on both release and debug mode

In your pro file :

debug {
    RESOURCES     = application_debug.qrc
}

!debug {
    RESOURCES     = application_release.qrc
}

You can install the new qt creator, it will solve the problem. Worked for me. I installed QT creator 4.8.7.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!