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

Designer: Cannot add attributes like 'notr' to QStringList

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4: Low
    • None
    • 4.7.3
    • Tools: Designer
    • None
    • 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

              kleint Friedemann Kleint
              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