Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
None
-
None
Description
When designing UIs using Designer UI files, sometimes one wants to set e.g. text or icons to widgets only for the purpose of visual assistance when working on the UI file, but not have the very text or icon also set in the code generated from the UI file.
As the very value of the property would be only estimated at runtime by some logic/code.
So it would be nice to have an option to set an attribute to properties whether to skip them when generating code with uic. While Designer would use the very property value as placeholder when displaying the form.
Unsure about how to best notate such information, also not researched solutions in similar tools. Perhaps some attribute "previewonly" would be used?{{ }}
Example:
<widget class="QLabel" name="name">
<property name="text" previewonly="true">
<string>Jane User</string>
</property>
</widget>