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. UI is not updating in build (MSVS 2019, QT6)
Forum Updated to NodeBB v4.3 + New Features

UI is not updating in build (MSVS 2019, QT6)

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 482 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.
  • M Offline
    M Offline
    Meeuxi
    wrote on last edited by Meeuxi
    #1

    Hello,
    I am working on a project in MSVS 2019 using C++ and QT6. I have two ui files which work fine however on one of the files any changes I make do not appear on the finished build so I can't change my ui. On the other one it works fine. I have tried deleting ui or moc files from teh debug folder but is doesn't seem to help.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      And you're sure you use this ui-file and start the correct executable? I would guess no.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      M 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        And you're sure you use this ui-file and start the correct executable? I would guess no.

        M Offline
        M Offline
        Meeuxi
        wrote on last edited by
        #3

        @Christian-Ehrlicher I am using the local debugger which has o choice but to use that ui file as there isn't another one with these contents. It's displaying my ui, just one from 2 iterations ago

        JonBJ 1 Reply Last reply
        0
        • M Meeuxi

          @Christian-Ehrlicher I am using the local debugger which has o choice but to use that ui file as there isn't another one with these contents. It's displaying my ui, just one from 2 iterations ago

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @Meeuxi
          If it's built up-to-date, and all you do is alter the .ui file, do any commands get executed when you next build, or does it think there is nothing to do?

          M 1 Reply Last reply
          0
          • JonBJ JonB

            @Meeuxi
            If it's built up-to-date, and all you do is alter the .ui file, do any commands get executed when you next build, or does it think there is nothing to do?

            M Offline
            M Offline
            Meeuxi
            wrote on last edited by
            #5

            @JonB Well I do in the course of running it adjust different Texts and Labels and that works completely fine. However I have removed a label in the ui file and replaced it with a Scroll Area and that does not show up when starting the program. Before shwoing the ui there is no command acting on it. I setup the Widet in the corresponding cpp and show it.

            JonBJ 1 Reply Last reply
            0
            • M Meeuxi

              @JonB Well I do in the course of running it adjust different Texts and Labels and that works completely fine. However I have removed a label in the ui file and replaced it with a Scroll Area and that does not show up when starting the program. Before shwoing the ui there is no command acting on it. I setup the Widet in the corresponding cpp and show it.

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @Meeuxi
              This was not the question. I have not used Visual Studio, but I assume when you change a .ui file the project has to rebuild? I am asking whether that happens for the .ui file you say is not reflecting changes in the latest executable?

              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