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

    Axel SpoerlA 1 Reply Last reply
    0
    • E eucor

      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.

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on 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
      0
      • Axel SpoerlA Axel Spoerl

        @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 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
        • Axel SpoerlA Axel Spoerl

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

          Axel SpoerlA 1 Reply Last reply
          1
          • E eucor

            @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

            Axel SpoerlA Offline
            Axel SpoerlA Offline
            Axel Spoerl
            Moderators
            wrote on 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

            • Login

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