Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Call for Presentations - Qt World Summit

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

    General and Desktop
    2
    3
    2349
    Loading More Posts
    • 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
      mymojo last edited by

      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 Reply Quote 0
      • R
        rittk last edited by

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

        1 Reply Last reply Reply Quote 0
        • M
          mymojo last edited by

          wow. thank you!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post