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

Designer: Cannot add attributes like 'notr' to QStringList

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Duplicate
    • Affects Version/s: 4.7.3
    • Fix Version/s: None
    • Component/s: Tools: Designer
    • Labels:
      None
    • Environment:
      Windows

      Description

      If using QStringList in Qt Designer plugin then it is not possible to add 'notr' attribute (or 'comment') to strings added to QStringList.

      I attached a Qt (4.7.3) Designer plugin "QStringListPlugin" that can be used to reproduce the issue. I used the plugin and added three strings to QStringList.
      The result in .ui file is:
      <property name="customList">
      <stringlist>
      <string>aa</string>
      <string>bb</string>
      <string>cc</string>
      </stringlist>
      </property>

      The biggest problem with this is that when creating a translation file from this .ui then it adds all unwanted items from stringlist to the .ts file.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-20440
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes