Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML - Qt Quick Application 2nd Build/Run not working

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

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 3 Posters 539 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chohan
    wrote on last edited by
    #1

    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.

    T 1 Reply Last reply
    0
    • C Offline
      C Offline
      Chohan
      wrote on last edited by Chohan
      #5

      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.

      1 Reply Last reply
      1
      • C Chohan

        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.

        T Offline
        T Offline
        Tom_H
        wrote on last edited by
        #2

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

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chohan
          wrote on last edited by
          #3

          @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.

          J.HilkJ 1 Reply Last reply
          0
          • C Chohan

            @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.

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #4

            @Chohan hard to tell,

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


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chohan
              wrote on last edited by Chohan
              #5

              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.

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved