Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QML - Qt Quick Application 2nd Build/Run not working



  • Dear All,

    I have been trying to create QML application. I am using QT 5.7.1 version. Whenever I choose Qt Quick Application to create project. I get demo project (Hello World). If I edit something in the project and then build/run it then it works fine.

    But the problem is, on my second build/run it still shows the previous builds result. I have even re-installed the software (which is time consuming) but still no success. Can you please help me in this regard.

    Thanks in advance.



  • Ok. I found the solution but exact reason is still unknown.

    I was saving my Project on the server, not in local drive. Strangely, it worked for Qt Console Applications but for some reasons (unknown to me) doesn't work for Qt Quick Applications. When I save project in local drive, it works fine.

    I hope it will help someone else.

    Have a nice day.



  • @Chohan Whenever I get strange results, I delete the project build folder and rebuild. That usually fixes it.



  • @Tom_H thanks for the reply. I tried that already, even created new project for testing but still no result.

    I downloaded some project from internet, it working all fine. But whenever I create new project then I have issue.. Which narrows down the problem to the settings. I have used same project settings, .pro includes and everything but still I don't understand where the problem lies.


  • Moderators

    @Chohan hard to tell,

    can you create a minimal example that doesn't work and share it ?



  • Ok. I found the solution but exact reason is still unknown.

    I was saving my Project on the server, not in local drive. Strangely, it worked for Qt Console Applications but for some reasons (unknown to me) doesn't work for Qt Quick Applications. When I save project in local drive, it works fine.

    I hope it will help someone else.

    Have a nice day.


Log in to reply