0

I would like to implement (already implemented a scratch but not satisfied with that) a custom QSpinBox with the extra feature of a digit grouping. I would like to use this with small and large numbers as well like 1.000 ... 10.000.000. I found this but I think I need a locale independent solution. I'd appreciate any advice.

Community
  • 1
  • 1
p.i.g.
  • 2,815
  • 2
  • 24
  • 41
  • "I need a locale independent solution" so you want to always have a `.` to group the digits regardless independent of the locale? Then just format the string in `textFromValue` accordingly. – m.s. May 11 '15 at 21:53
  • A '.' (dot) or a ' ' (space). So that's the only function I need to overwrite ? I'll try that. Thanks. – p.i.g. May 11 '15 at 22:25
  • See [this answer](https://stackoverflow.com/a/44171440/673852) (still your link, but updated two years after your question was posted). – Ruslan Nov 02 '20 at 12:42

0 Answers0