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

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.7k 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 17 Dec 2018, 09:09 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!

    J 1 Reply Last reply 17 Dec 2018, 09:18
    0
    • P Princein
      17 Dec 2018, 09:09

      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!

      J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 17 Dec 2018, 09:18 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 17 Dec 2018, 09:28 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!

        A 1 Reply Last reply 17 Dec 2018, 09:36
        0
        • P Princein
          17 Dec 2018, 09:28

          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!

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 17 Dec 2018, 09:36 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.

          M 1 Reply Last reply 17 Dec 2018, 09:55
          1
          • A aha_1980
            17 Dec 2018, 09:36

            @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...

            M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 17 Dec 2018, 09:55 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 1 Reply Last reply 17 Dec 2018, 09:57
            4
            • M mrjj
              17 Dec 2018, 09:55

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

              J Online
              J Online
              J.Hilk
              Moderators
              wrote on 17 Dec 2018, 09:57 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
              • A Offline
                A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 17 Dec 2018, 10:04 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.

                M J 2 Replies Last reply 17 Dec 2018, 10:16
                1
                • A aha_1980
                  17 Dec 2018, 10:04

                  @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.

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 17 Dec 2018, 10:16 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
                  • A aha_1980
                    17 Dec 2018, 10:04

                    @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 Online
                    J Online
                    J.Hilk
                    Moderators
                    wrote on 17 Dec 2018, 10:21 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.

                    A 1 Reply Last reply 17 Dec 2018, 10:30
                    2
                    • J J.Hilk
                      17 Dec 2018, 10:21

                      @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.

                      A Offline
                      A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on 17 Dec 2018, 10:30 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 1 Reply Last reply 17 Dec 2018, 10:36
                      1
                      • A aha_1980
                        17 Dec 2018, 10:30

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

                        J Online
                        J Online
                        J.Hilk
                        Moderators
                        wrote on 17 Dec 2018, 10:36 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.

                        M A 2 Replies Last reply 17 Dec 2018, 10:37
                        1
                        • J J.Hilk
                          17 Dec 2018, 10:36

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

                          M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 17 Dec 2018, 10:37 last edited by
                          #12

                          @J.Hilk
                          that sounds kinda wrong ;)

                          1 Reply Last reply
                          0
                          • J J.Hilk
                            17 Dec 2018, 10:36

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

                            A Offline
                            A Offline
                            aha_1980
                            Lifetime Qt Champion
                            wrote on 17 Dec 2018, 10:38 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.

                            M 1 Reply Last reply 17 Dec 2018, 10:44
                            2
                            • A aha_1980
                              17 Dec 2018, 10:38

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

                              M Offline
                              M Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on 17 Dec 2018, 10:44 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.

                              A 1 Reply Last reply 19 Dec 2018, 07:15
                              0
                              • M mrjj
                                17 Dec 2018, 10:44

                                @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.

                                A Offline
                                A Offline
                                aha_1980
                                Lifetime Qt Champion
                                wrote on 19 Dec 2018, 07:15 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.

                                M 1 Reply Last reply 19 Dec 2018, 07:28
                                2
                                • A aha_1980
                                  19 Dec 2018, 07:15

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

                                  M Offline
                                  M Offline
                                  mrjj
                                  Lifetime Qt Champion
                                  wrote on 19 Dec 2018, 07:28 last edited by
                                  #16

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

                                  A 1 Reply Last reply 19 Dec 2018, 07:31
                                  0
                                  • M mrjj
                                    19 Dec 2018, 07:28

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

                                    A Offline
                                    A Offline
                                    aha_1980
                                    Lifetime Qt Champion
                                    wrote on 19 Dec 2018, 07:31 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.

                                    M 1 Reply Last reply 19 Dec 2018, 07:34
                                    0
                                    • A aha_1980
                                      19 Dec 2018, 07:31

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

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

                                      M Offline
                                      M Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on 19 Dec 2018, 07:34 last edited by
                                      #18

                                      @aha_1980
                                      Ah the actual standalone designer ?

                                      A 1 Reply Last reply 19 Dec 2018, 07:37
                                      0
                                      • M mrjj
                                        19 Dec 2018, 07:34

                                        @aha_1980
                                        Ah the actual standalone designer ?

                                        A Offline
                                        A Offline
                                        aha_1980
                                        Lifetime Qt Champion
                                        wrote on 19 Dec 2018, 07:37 last edited by
                                        #19

                                        @mrjj Yup

                                        Qt has to stay free or it will die.

                                        1 Reply Last reply
                                        0

                                        1/19

                                        17 Dec 2018, 09:09

                                        • Login

                                        • Login or register to search.
                                        1 out of 19
                                        • First post
                                          1/19
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • Popular
                                        • Users
                                        • Groups
                                        • Search
                                        • Get Qt Extensions
                                        • Unsolved