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

Designer: Cannot add attributes like 'notr' to QStringList

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4: Low P4: Low
    • None
    • 4.7.3
    • Tools: Designer
    • None
    • Windows

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes