Details
-
User Story
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
Description
Why
Qt Insight uses object names to distinguish objects from each other.
Qt Insight WebConsole is also relying on object names when visualising data.
What
Qt Design Studio should add object names automatically to all user interactionable types in the project.
- This should be hooked into the Qt Insight On/Off toggle so that when it's enabled, the whole project is parsed through and object names are added automatically.
- When the project is parsed and processed, a progress bar and possibly a list of modified files should be presented to the user.
- Object name generation could be following pattern <fileName>+<objectId> or something similar that would be project wide unique.
List of types that should get object name set automatically
- Quick Controls
- ...
Open items
- Which of the types should get the objectName set. e.g. MouseArea itself is not interesting but the component it has been set to.
//button's objectName is interesting not MouseArea's Rectangle { id: button objectName: "generated" MouseArea { anchors.fill: parent } }