Results 1 to 3 of 3

Thread: Numbers with comma format

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Numbers with comma format

    Try
    Qt Code:
    1. QString number = QLocale(QLocale::English).toString(123456789, 'f', 2);
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  2. The following 3 users say thank you to jpn for this useful post:

    baray98 (25th October 2007), gfunk (7th December 2007), iskenderoguz (6th February 2016)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.