Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.2
-
None
-
-
f9dccd05d (dev), 6099a3e09 (6.6), 003750b8c (6.5)
Description
In QML I have a Label with:
text: {
var loc = Qt.locale("nl_NL");
return "(" + loc.currencySymbol(Locale.CurrencySymbol) + ") "
+ loc.currencySymbol(Locale.CurrencyDisplayName);
}
This follows the docs on https://doc.qt.io/qt-6/qml-qtqml-locale.html#currencySymbol-method
What I expected to see is:
(€) Euro
Instead what I see is:
(EUR) EUR
And I'm pretty sure that this worked in v.6.4
Adding this debug info:
console.log(Locale.CurrencyIsoCode);
console.log(Locale.CurrencyDisplayName);
console.log(Locale.CurrencySymbol);
gives me "undefined" 3 times.
Attachments
For Gerrit Dashboard: QTBUG-116527 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
499795,4 | QLocale: Add Q_ENUM registration for some enums | dev | qt/qtbase | Status: MERGED | +2 | 0 |
500576,3 | QLocale: Add Q_ENUM registration for some enums | 6.5 | qt/qtbase | Status: MERGED | +2 | 0 |
500577,3 | QLocale: Add Q_ENUM registration for some enums | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |