Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.14.0
-
-
814682bb9a5c9ccaff30662dd757cd827f39aad0 (qt/qtquickcontrols2/5.15)
Description
QQmlApplicationEngine::retranslate does not work for display text in ComboBox.
How to reproduce:
1. Run the sample code (QTBUG8202_sample.zip)
2. Press "j" to translate to Japanese, Press "e" to translate to English.
The elements of ComboBox are translated but not the display text.
Workaround?
Adding the following to ComboBox solves the problem
displayText: qsTr(currentText)
or
displayText: listViewModel.get(currentIndex).label
Attachments
Issue Links
- relates to
-
QTBUG-68350 QQmlApplicationEngine::retranslate do not work for strings in ListView/ListElement
-
- Closed
-
For Gerrit Dashboard: QTBUG-82020 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
290040,8 | Update the current text after a translator is installed | 5.15 | qt/qtquickcontrols2 | Status: MERGED | +2 | 0 |
290486,7 | Send the LanguageChange event to all top level windows, not just widgets | 5.15 | qt/qtbase | Status: MERGED | +2 | 0 |
290619,4 | Propagate the LanguageChange events from the QQuickWindow to the items | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |