Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
6.4.1
-
None
Description
Hi,
I am having some issues using toString function from QLocale since I moved from PyQt5. My locale country is Spain, in case it matters for some region options. For trying to reproduce the following cases you can create a locale object first from QtCore.
Negative numbers support:
locale.toString(-4) --> OverflowError. As is an integer number it should detect it and convert it, as is supported in the API
Wrong decimal separator representation:
locale.toString(1234) --> 1234 (thousand separator is missing)
locale.toString(12345) --> 12.345 (thousand separator is correct)
locale.toString(float(3355443), 'f', 3) --> 3355.443,000 (thousand separator is missing)
Supported signatures:
When you get a TypeError exception a supported signatures option list appears. As it seems that the argument must be the right/excepted type when you could each function, it would be nice to get the different overload functions in the description as in the documented API.
This is the API documentation for QLocale.toString() function.
Thanks for your help.
Iván
Attachments
Issue Links
- duplicates
-
PYSIDE-2168 QLocale.toString() issues
- Closed
- is replaced by
-
QTBUG-109955 Implement system query for digit grouping rules
- Open
- relates to
-
QTBUG-58351 QLocale: Allow fully customized locale settings (user-configured date strings, etc)
- Open
- resulted from
-
PYSIDE-2168 QLocale.toString() issues
- Closed