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