Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Using Qt Designer but changes don't show up when I run.
QtWS25 Last Chance

Using Qt Designer but changes don't show up when I run.

Scheduled Pinned Locked Moved Qt Creator and other tools
9 Posts 4 Posters 4.4k 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
    Mopac123
    wrote on last edited by
    #1

    Hello,

    I am using Qt Designer to edit previous window text and color changes from an older program designed by someone else. The issue is that when I change a text box, or I edit the color or gradient of an object it works in the Qt Design, but when I compile it and run the program it doesn't make any of the changes to the program. I ran Qmake, but nothing.

    If anyone has any ideas please let me know, it will be extreamly helpful.

    Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you try with deleting the build folder and rebuild your application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mopac123
        wrote on last edited by
        #3

        Hey SGaist,

        Thanks for your response, unfortunately I have tried that process already (I should have mentioned that eariler) but it didn't fix it.

        Any other ideas? I am really scratching my head on this one.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then... Are you sure your UI file has been updated before compiling it ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mopac123
            wrote on last edited by
            #5

            I went in and checked, and yes my mainwindow.ui (the .ui I was working on) was updated in the folder, and all the changes I have saved previous were there when I opend the .ui file up in Qt.

            But still, when I compile and run the project as a whole, those changes do not show up. Is there a library change that I am not aware of for Qt designer in version 5? The program was writen in Qt 4 I believe.

            But that doesn't explain why the text or box style doesn't save when the program is compiled when I make clear changes.

            I am really confused on this one, if you are out of ideas no problem. I will plug away at this until I figure it out and I will share my findings.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do you have some style sheet in your application that could be overriding the changes you're making with Designer ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • F Offline
                F Offline
                fassl
                wrote on last edited by
                #7

                Hi,

                i had a similar issue that my stylesheet showed correct in the Designer but not when i ran the Application, no matter turning off shadow build and cleaning everything. I found that when i want to achieve this i had to duplicate the style...

                #WidgetClassName
                {
                blabla
                }

                for the Designer to do its work and

                .WidgetClassName
                {
                blabla
                }

                for it to show correctly in the running Application. Hope this helps if you still have the issue. Maybe someone else has an easier nicer solution.

                cheers

                Hehe,
                just tried out

                #WidgetClassName, .WidgetClassName
                {
                blabla
                }

                ... and it works... ;) so no need to duplicate it.

                1 Reply Last reply
                0
                • dheerendraD Offline
                  dheerendraD Offline
                  dheerendra
                  Qt Champions 2022
                  wrote on last edited by
                  #8

                  You must be keeping your Ui_*.h files somewhere else and this directory is coming in path. Just check if you had checked in this file in some directory.

                  Dheerendra
                  @Community Service
                  Certified Qt Specialist
                  http://www.pthinks.com

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    fassl
                    wrote on last edited by
                    #9

                    Hi, i just tried setting UI_DIR to another directory and appending that directory to PATH, if i understood you correctly. Still the same behavior shows up and i have to do what i posted above.

                    cheers

                    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