How find a ui element according name in ui form in qt project
-
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! -
@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). -
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!
-
@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...
-
@aha_1980
make sure it has focus first.
Then ctrl+f works. ( at least in 4.3 and 4.7.2) -
@mrjj in 4.8 as well
-
-
@aha_1980
well, i also did it the wrong way. purely random i click first on second attempt:)
A filter would be super nice. -
@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_1980 or I could send Santa a pull request :D
-
@J.Hilk
that sounds kinda wrong ;) -
@J.Hilk I guess Santa and his helpers at TheQtCompany would be very thankful for such help :)
-
@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. -
There's an ongoing patch for the filter - in case someone wants to try: https://codereview.qt-project.org/248574
-
@aha_1980
To try it out, one would do compile a new version of Designer plugin or full creator ? -
@mrjj I'd just compile designer - easier and faster :)
Later it will be included in Creator also once the patch is merged.
-
@aha_1980
Ah the actual standalone designer ? -
@mrjj Yup
1/19