Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Changes not applied after compiling and running (QT Creator)

Changes not applied after compiling and running (QT Creator)

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtcreator
5 Posts 2 Posters 453 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.
  • E Offline
    E Offline
    eucor
    wrote on 5 Dec 2023, 14:59 last edited by
    #1

    The changes I make on the .cpp and the .ui files are not applied when compiling the code. What it shows when I run it is the first code that I compiled, without the changes.

    A 1 Reply Last reply 5 Dec 2023, 15:12
    0
    • E eucor
      5 Dec 2023, 14:59

      The changes I make on the .cpp and the .ui files are not applied when compiling the code. What it shows when I run it is the first code that I compiled, without the changes.

      A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote on 5 Dec 2023, 15:12 last edited by
      #2

      @eucor

      • Sorry for asking this question: Are the changes saved?
      • If you go to project settings -> build and hit "Details" on the right, you will see the selected build targets.
        What is checked there? "Current Executable" or "all"?
      • Are you running the executable, that is compiled? Sometimes, the debug target is compiled, but the release target is run and vice versa.
      • Finally: What does the "Compile Output" tab say? Was the compilation successful or did it have errors?

      Software Engineer
      The Qt Company, Oslo

      E 2 Replies Last reply 5 Dec 2023, 15:36
      0
      • A Axel Spoerl
        5 Dec 2023, 15:12

        @eucor

        • Sorry for asking this question: Are the changes saved?
        • If you go to project settings -> build and hit "Details" on the right, you will see the selected build targets.
          What is checked there? "Current Executable" or "all"?
        • Are you running the executable, that is compiled? Sometimes, the debug target is compiled, but the release target is run and vice versa.
        • Finally: What does the "Compile Output" tab say? Was the compilation successful or did it have errors?
        E Offline
        E Offline
        eucor
        wrote on 5 Dec 2023, 15:36 last edited by
        #3

        @Axel-Spoerl I dont't see any Checks for "current executable" or "all". My build steps consists in:
        qmake: qmake.exe name_project,pro
        then
        Make: : mingw32-make.exe -j12 in C:\Users\User\Documents\build-name_project-Desktop_Qt_6_6_1_MinGW_64_bit-Debug

        I tried running the executable in the output folder as well as running directly in the IDE.
        The compile output says the compilation was succesful.

        Thanks for taking your time helping me.

        1 Reply Last reply
        0
        • A Axel Spoerl
          5 Dec 2023, 15:12

          @eucor

          • Sorry for asking this question: Are the changes saved?
          • If you go to project settings -> build and hit "Details" on the right, you will see the selected build targets.
            What is checked there? "Current Executable" or "all"?
          • Are you running the executable, that is compiled? Sometimes, the debug target is compiled, but the release target is run and vice versa.
          • Finally: What does the "Compile Output" tab say? Was the compilation successful or did it have errors?
          E Offline
          E Offline
          eucor
          wrote on 5 Dec 2023, 15:47 last edited by
          #4

          @Axel-Spoerl The only thing that worked for me was deleting the outuput build folder in C:\Users\user\Documents\build-name_project and building it all again then restarting the IDE

          A 1 Reply Last reply 6 Dec 2023, 11:42
          1
          • E eucor
            5 Dec 2023, 15:47

            @Axel-Spoerl The only thing that worked for me was deleting the outuput build folder in C:\Users\user\Documents\build-name_project and building it all again then restarting the IDE

            A Offline
            A Offline
            Axel Spoerl
            Moderators
            wrote on 6 Dec 2023, 11:42 last edited by
            #5

            @eucor, and that has fixed the problem generally, or do you have to delete & restart every time?
            Maybe the build tree is broken, or the virus scanner steps on the compiler's toes.

            Software Engineer
            The Qt Company, Oslo

            1 Reply Last reply
            0

            5/5

            6 Dec 2023, 11:42

            • Login

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