Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
6.4.1
-
None
-
Python 3.9
PySide6 6.4.1
Windows 10
-
-
52e3b960b3 (pyside/pyside-setup/dev) 99ff428b81 (pyside/pyside-setup/6.4) 99ff428b81 (pyside/tqtc-pyside-setup/6.4) 52e3b960b3 (pyside/tqtc-pyside-setup/dev) e684f7e0ee (pyside/tqtc-pyside-setup/6.2), 02e488c61 (dev)
Description
from PySide6 import QtCore print(QtCore.QLocale("en_US").toCurrencyString(1234.56))
This prints "$1,234", omitting the decimal digits.
In Qt 6.4.1 (c++) this works as expected:
#include <QLocale> int main(int argc, char *argv[]) { qDebug() << QLocale("en_US").toCurrencyString(1234.56); }
This prints "$1,234.56".
Attachments
Issue Links
- relates to
-
PYSIDE-2168 QLocale.toString() issues
- Closed
For Gerrit Dashboard: PYSIDE-2133 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
445231,1 | WIP: shiboken6: Add unsigned integers to the float conversion check in the overload sorter | dev | pyside/pyside-setup | Status: DEFERRED | -2 | 0 |
445236,3 | PySide6: Fix float type overloads of QLocale.toCurrencyString() | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
445410,2 | PySide6: Fix float type overloads of QLocale.toCurrencyString() | 6.4 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
445416,2 | PySide6: Fix float type overloads of QLocale.toCurrencyString() | tqtc/lts-6.2 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |
452712,2 | shiboken6: Add order depending on type range for C++ primitive types to the overload sorter | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |