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. How find a ui element according name in ui form in qt project
QtWS25 Last Chance

How find a ui element according name in ui form in qt project

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 5 Posters 3.6k 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.
  • P Offline
    P Offline
    Princein
    wrote on last edited by
    #1

    Hi:
    I develop a mac app in qt on mac,I want seacrh a ui element which named 'body_container', so I search it,the result list show find it in my .ui file,but that is in the xml format,but I want see the ui element in the ui form which I can see the ui element intuitively,is there any way to do this in qt? thanks a lot!

    jsulmJ 1 Reply Last reply
    0
    • P Princein

      Hi:
      I develop a mac app in qt on mac,I want seacrh a ui element which named 'body_container', so I search it,the result list show find it in my .ui file,but that is in the xml format,but I want see the ui element in the ui form which I can see the ui element intuitively,is there any way to do this in qt? thanks a lot!

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

      @Princein Not sure I understand the question.
      In Qt Designer you see a tree with all your UI objects on the right site (in the object tree).

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

      1 Reply Last reply
      1
      • P Offline
        P Offline
        Princein
        wrote on last edited by
        #3

        thanks for your reply!,yes, I can see a tree with all UI objects on the right site (in the object tree).but there is too many UI objects on the right site, so I want get the UI object by search with the UI object's name in the Qt Designer,it seem '⌘F' not work in Qt Designer,so I use the '⌘ Shift F',in the search result list I find the Object name,but it in the ui xml format,not the 'design mode',so how get a UI object by search UI object's name in the ui 'design mode'?,thanks a lot!

        aha_1980A 1 Reply Last reply
        0
        • P Princein

          thanks for your reply!,yes, I can see a tree with all UI objects on the right site (in the object tree).but there is too many UI objects on the right site, so I want get the UI object by search with the UI object's name in the Qt Designer,it seem '⌘F' not work in Qt Designer,so I use the '⌘ Shift F',in the search result list I find the Object name,but it in the ui xml format,not the 'design mode',so how get a UI object by search UI object's name in the ui 'design mode'?,thanks a lot!

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by aha_1980
          #4

          @Princein Unfortunately the object tree has no filter, in contrast to the properties or the widgets on the left side... So no, I don't see a way to search for now.

          Edit: found QTBUG-17663, but the suggested solution Ctrl+F does not work...

          Qt has to stay free or it will die.

          mrjjM 1 Reply Last reply
          1
          • aha_1980A aha_1980

            @Princein Unfortunately the object tree has no filter, in contrast to the properties or the widgets on the left side... So no, I don't see a way to search for now.

            Edit: found QTBUG-17663, but the suggested solution Ctrl+F does not work...

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #5

            @aha_1980
            alt text
            make sure it has focus first.
            Then ctrl+f works. ( at least in 4.3 and 4.7.2)

            J.HilkJ 1 Reply Last reply
            4
            • mrjjM mrjj

              @aha_1980
              alt text
              make sure it has focus first.
              Then ctrl+f works. ( at least in 4.3 and 4.7.2)

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

              @mrjj in 4.8 as well
              0_1545040632195_5dff743a-bdc7-4661-be4d-70b8fbbc3dce-image.png


              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
              1
              • aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @mrjj and @J-Hilk: Yeah, you're right.

                Nevertheless it's hard to find, and when I first tried I did it wrong and it was not working. A filter would be better, IMHO.

                Qt has to stay free or it will die.

                mrjjM J.HilkJ 2 Replies Last reply
                1
                • aha_1980A aha_1980

                  @mrjj and @J-Hilk: Yeah, you're right.

                  Nevertheless it's hard to find, and when I first tried I did it wrong and it was not working. A filter would be better, IMHO.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @aha_1980
                  well, i also did it the wrong way. purely random i click first on second attempt:)
                  A filter would be super nice.

                  1 Reply Last reply
                  0
                  • aha_1980A aha_1980

                    @mrjj and @J-Hilk: Yeah, you're right.

                    Nevertheless it's hard to find, and when I first tried I did it wrong and it was not working. A filter would be better, IMHO.

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

                    @aha_1980
                    it would also be nice if one could detach the whole widget to make it it's own window. The depth of the tree increases very quickly and you end up scrolling up down left and right, all the time.


                    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.

                    aha_1980A 1 Reply Last reply
                    2
                    • J.HilkJ J.Hilk

                      @aha_1980
                      it would also be nice if one could detach the whole widget to make it it's own window. The depth of the tree increases very quickly and you end up scrolling up down left and right, all the time.

                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by aha_1980
                      #10

                      @J.Hilk You have to send the christmas wishes to Santa to become true... :)

                      Qt has to stay free or it will die.

                      J.HilkJ 1 Reply Last reply
                      1
                      • aha_1980A aha_1980

                        @J.Hilk You have to send the christmas wishes to Santa to become true... :)

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

                        @aha_1980 or I could send Santa a pull request :D


                        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.

                        mrjjM aha_1980A 2 Replies Last reply
                        1
                        • J.HilkJ J.Hilk

                          @aha_1980 or I could send Santa a pull request :D

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @J.Hilk
                          that sounds kinda wrong ;)

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

                            @aha_1980 or I could send Santa a pull request :D

                            aha_1980A Offline
                            aha_1980A Offline
                            aha_1980
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            @J.Hilk I guess Santa and his helpers at TheQtCompany would be very thankful for such help :)

                            Qt has to stay free or it will die.

                            mrjjM 1 Reply Last reply
                            2
                            • aha_1980A aha_1980

                              @J.Hilk I guess Santa and his helpers at TheQtCompany would be very thankful for such help :)

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              @aha_1980
                              And also all the behaved kids like me that would love if the designer
                              could also use Open as a window for its elements.

                              aha_1980A 1 Reply Last reply
                              0
                              • mrjjM mrjj

                                @aha_1980
                                And also all the behaved kids like me that would love if the designer
                                could also use Open as a window for its elements.

                                aha_1980A Offline
                                aha_1980A Offline
                                aha_1980
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                There's an ongoing patch for the filter - in case someone wants to try: https://codereview.qt-project.org/248574

                                Qt has to stay free or it will die.

                                mrjjM 1 Reply Last reply
                                2
                                • aha_1980A aha_1980

                                  There's an ongoing patch for the filter - in case someone wants to try: https://codereview.qt-project.org/248574

                                  mrjjM Offline
                                  mrjjM Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  @aha_1980
                                  To try it out, one would do compile a new version of Designer plugin or full creator ?

                                  aha_1980A 1 Reply Last reply
                                  0
                                  • mrjjM mrjj

                                    @aha_1980
                                    To try it out, one would do compile a new version of Designer plugin or full creator ?

                                    aha_1980A Offline
                                    aha_1980A Offline
                                    aha_1980
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    @mrjj I'd just compile designer - easier and faster :)

                                    Later it will be included in Creator also once the patch is merged.

                                    Qt has to stay free or it will die.

                                    mrjjM 1 Reply Last reply
                                    0
                                    • aha_1980A aha_1980

                                      @mrjj I'd just compile designer - easier and faster :)

                                      Later it will be included in Creator also once the patch is merged.

                                      mrjjM Offline
                                      mrjjM Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #18

                                      @aha_1980
                                      Ah the actual standalone designer ?

                                      aha_1980A 1 Reply Last reply
                                      0
                                      • mrjjM mrjj

                                        @aha_1980
                                        Ah the actual standalone designer ?

                                        aha_1980A Offline
                                        aha_1980A Offline
                                        aha_1980
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        @mrjj Yup

                                        Qt has to stay free or it will die.

                                        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