Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-10548

Do no mix translation functions in a UI file (ui.qml). (M227)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • QDS 4.3
    • QDS 4.3
    • 2D View
    • None
    • Windows
    • 0af20575c (qds/dev)
    • QDS Berlin - 2023 Week 35/36

    Description

      Dragging & dropping "Text" qml type to 2d form or Navigator of .ui.qml file which alrady contains qsTrId() causes an error with the message "Do no mix translation functions in a UI file (ui.qml). (M227)" and doesn't allow the user to add the Text.

      This is becuase Text QML item comes with qsTr() by default and qsTr() and qsTrId() cannot be mixed. I suggest that Text QML item(and others which come with qsTr()) should automatically change it's translation function to qsTrId() if only qsTrId() is used in a file already.

      Attachments

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

        Activity

          People

            thohartm Thomas Hartmann
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes