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

    • 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)

      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.

       

        1. retranslationBug.zip
          4 kB
          Pedro López-Cabanillas
        For Gerrit Dashboard: QTBUG-107208
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes