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

[Reg 5.15 -> 6.x] QQmlApplicationEngine::retranslate() doesn't work for ComboBox and ListView

    XMLWordPrintable

Details

    • All
    • 53fa870971 (qt/qtdeclarative/dev) d99a4abda4 (qt/qtdeclarative/6.4) d99a4abda4 (qt/tqtc-qtdeclarative/6.4) 53fa870971 (qt/tqtc-qtdeclarative/dev) 65efbd390b (qt/tqtc-qtdeclarative/6.2)

    Description

      This looks like a regression of QTBUG-82020 and QTBUG-68350 which where fixed in Qt5 long time ago, but running the provided example projects of both bugs with Qt6 (any version) show the failures:

      Attached another sample project showing the same wrong behavior when compiled with Qt6, but woirks as expected with Qt 5.15: retranslationBug.zip

      When calling QQmlApplicationEngine::retranslate() the ComboBox popup items are not retranslated. It shows always the same strings as the first time the popup was opened. But the currentText property is correctly translated.

      The ListView items are never translated.

       

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            plcl Pedro López-Cabanillas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes