Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-125327

Wanted: markup of properties as preview content only, e.g. text or icons

    XMLWordPrintable

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>

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jkobus Jarek Kobus
            kossebau Friedrich W. H. Kossebau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes