Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved some objects created in Designer not visible in editor

    Tools
    5
    10
    752
    Loading More Posts
    • 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.
    • mzimmers
      mzimmers last edited by

      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.

      jsulm J.Hilk 2 Replies Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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

        mzimmers 1 Reply Last reply Reply Quote 0
        • mzimmers
          mzimmers @SGaist last edited by

          @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 Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @mzimmers last edited by

            @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 Reply Quote 1
            • J.Hilk
              J.Hilk Moderators @mzimmers last edited by 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

              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct

              Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              SGaist 1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion @J.Hilk last edited by

                @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.Hilk 1 Reply Last reply Reply Quote 2
                • J.Hilk
                  J.Hilk Moderators @SGaist last edited by

                  @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

                  Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply Reply Quote 0
                  • mzimmers
                    mzimmers last edited by

                    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.

                    artwaw 1 Reply Last reply Reply Quote 0
                    • artwaw
                      artwaw @mzimmers last edited by

                      @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

                      mzimmers 1 Reply Last reply Reply Quote 0
                      • mzimmers
                        mzimmers @artwaw last edited by

                        @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 Reply Quote 1
                        • First post
                          Last post