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.