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. some objects created in Designer not visible in editor
QtWS25 Last Chance

some objects created in Designer not visible in editor

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
10 Posts 5 Posters 1.5k 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    Hi all -

    I know I've seen this problem before, but I reviewed my prior posts and couldn't find anything on it.

    I'll let the pictures explain:
    lineedit.PNG

    but:

    lineedit2.PNG

    The editor recognizes some but not all of the elements I've created in Designer. Where did I go wrong? I've run qmake, done a clean, and all that good stuff.

    Thanks.

    jsulmJ J.HilkJ 2 Replies Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Just in case, did you check the content of the UI xml ?

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

      mzimmersM 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Just in case, did you check the content of the UI xml ?

        mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        @SGaist yes, it's in there:

            <item>
              <widget class="QLineEdit" name="lineEditSerialNbr">
               <property name="font">
                <font>
                 <pointsize>10</pointsize>
                </font>
               </property>
              </widget>
             </item>
        
        1 Reply Last reply
        0
        • mzimmersM mzimmers

          Hi all -

          I know I've seen this problem before, but I reviewed my prior posts and couldn't find anything on it.

          I'll let the pictures explain:
          lineedit.PNG

          but:

          lineedit2.PNG

          The editor recognizes some but not all of the elements I've created in Designer. Where did I go wrong? I've run qmake, done a clean, and all that good stuff.

          Thanks.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @mzimmers said in some objects created in Designer not visible in editor:

          I've run qmake, done a clean, and all that good stuff.

          You mean you rebuild?
          Also, if you write the member name manually: does it compile?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • mzimmersM mzimmers

            Hi all -

            I know I've seen this problem before, but I reviewed my prior posts and couldn't find anything on it.

            I'll let the pictures explain:
            lineedit.PNG

            but:

            lineedit2.PNG

            The editor recognizes some but not all of the elements I've created in Designer. Where did I go wrong? I've run qmake, done a clean, and all that good stuff.

            Thanks.

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

            @mzimmers said in some objects created in Designer not visible in editor:

            I've run qmake, done a clean, and all that good stuff.

            have you also deleted your shadow build folder? sometimes that works magic as well 😉

            Also, when you're at it, delete your pro.file *.pro.user (when the project is closed) and open it clean.

            Those 2 steps at the very least always solved the issue for me


            Edit fixed misleading file name


            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.

            SGaistS 1 Reply Last reply
            0
            • J.HilkJ J.Hilk

              @mzimmers said in some objects created in Designer not visible in editor:

              I've run qmake, done a clean, and all that good stuff.

              have you also deleted your shadow build folder? sometimes that works magic as well 😉

              Also, when you're at it, delete your pro.file *.pro.user (when the project is closed) and open it clean.

              Those 2 steps at the very least always solved the issue for me


              Edit fixed misleading file name

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @J-Hilk said in some objects created in Designer not visible in editor:

              Also, when you're at it, delete your pro.file (when the project is closed) and open it clean.

              Did you meant the .pro.user file ?

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

              J.HilkJ 1 Reply Last reply
              2
              • SGaistS SGaist

                @J-Hilk said in some objects created in Designer not visible in editor:

                Also, when you're at it, delete your pro.file (when the project is closed) and open it clean.

                Did you meant the .pro.user file ?

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

                @SGaist yes I do, my bad🙈


                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
                • mzimmersM Offline
                  mzimmersM Offline
                  mzimmers
                  wrote on last edited by
                  #8

                  Thanks for all the suggestions. In response to jsulm, no, I hadn't done a rebuild -- this morning, I tried that, and it worked! (I hadn't yet tried any of the other suggestions like deleting the shadow build or my .pro.user file.

                  I'd really love to hear an explanation as to how a rebuild could fix this problem. Rebuild must do more than I realized.

                  Anyway, I think this one is resolved...thanks again, all.

                  artwawA 1 Reply Last reply
                  0
                  • mzimmersM mzimmers

                    Thanks for all the suggestions. In response to jsulm, no, I hadn't done a rebuild -- this morning, I tried that, and it worked! (I hadn't yet tried any of the other suggestions like deleting the shadow build or my .pro.user file.

                    I'd really love to hear an explanation as to how a rebuild could fix this problem. Rebuild must do more than I realized.

                    Anyway, I think this one is resolved...thanks again, all.

                    artwawA Offline
                    artwawA Offline
                    artwaw
                    wrote on last edited by
                    #9

                    @mzimmers I have this problem from time to time, especially when I make lots of small changes to the UI and the code without rebuilding. What helps, is to force "clean project" (or subproject, depends what you work on) and then run qmake again (options accessible from Build menu).

                    For more information please re-read.

                    Kind Regards,
                    Artur

                    mzimmersM 1 Reply Last reply
                    0
                    • artwawA artwaw

                      @mzimmers I have this problem from time to time, especially when I make lots of small changes to the UI and the code without rebuilding. What helps, is to force "clean project" (or subproject, depends what you work on) and then run qmake again (options accessible from Build menu).

                      mzimmersM Offline
                      mzimmersM Offline
                      mzimmers
                      wrote on last edited by
                      #10

                      @artwaw thanks for the suggestion. I'd tried a clean and run qmake (in that order) with no success. The missing step (for me, anyway) was the rebuild command.

                      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