Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLocale::toCurrencyString() does not return proper currency string
Forum Update on Monday, May 27th 2025

QLocale::toCurrencyString() does not return proper currency string

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mymojo
    wrote on 23 Nov 2012, 05:33 last edited by
    #1

    The following code:
    @QLocale(QLocale::English, QLocale::AnyScript, QLocale::UnitedStates).toCurrencyString(187234.00);@
    returns $187234.00 but the proper currency format is $187,234.00
    How to force group separators to be included in the output of this function?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rittk
      wrote on 24 Nov 2012, 00:23 last edited by
      #2

      fixed by https://codereview.qt-project.org/40439 (Qt5 post-beta2)

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mymojo
        wrote on 24 Nov 2012, 01:45 last edited by
        #3

        wow. thank you!

        1 Reply Last reply
        0

        1/3

        23 Nov 2012, 05:33

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved