Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.5.1, 6.7
-
-
5
-
Foundation Sprint 116, Foundation Sprint 117, Foundation Sprint 118, Foundation Sprint 119, Foundation Sprint 120, Foundation Sprint 121, Foundation Sprint 122, Foundation Sprint 123, Foundation Sprint 124
Description
QString::arg()'s overloads for integral types have fieldWidth, base and fillChar parameters, enabling callers to control how the number is presented. QLocale::toString()'s matching overloads don't support such control, even though the QLocaleData methods it uses to do the job do support them (since they're how QString at least used to do its version). So we have the ability to do formatted localised numbers, but we don't expose it to users (except via QString::arg()'s %L formats, which are limited to the default or system locale).
We should extend QLocale::toString() overloads to support these parameters.
Attachments
Issue Links
- resulted in
-
QTBUG-133089 Text width calculations are naive
- Open