Results 1 to 3 of 3

Thread: Qwt: axes numbers without comma as thousands separator

  1. #1
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Qwt: axes numbers without comma as thousands separator

    I would like how to print axes numbers without comma as thousands separator inside QwtPlot representation

    Thank you

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: Qwt: axes numbers without comma as thousands separator


  3. The following user says thank you to Uwe for this useful post:

    opiate (4th March 2013)

  4. #3
    Join Date
    Mar 2013
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default Re: Qwt: axes numbers without comma as thousands separator

    Thank you very much Uwe

    My idea was avoid the comma or point separator, so I did this and it works!:

    QLocale locale;
    locale.setNumberOptions(QLocale::OmitGroupSeparato r);
    QLocale::setDefault(locale);

  5. The following user says thank you to opiate for this useful post:

    embeddedmz (29th July 2019)

Similar Threads

  1. Displaying an integer with thousands separator
    By Jeffb in forum Qt Programming
    Replies: 6
    Last Post: 2nd February 2012, 12:21
  2. QString contains fails to find comma
    By NicholasSmith in forum Qt Programming
    Replies: 8
    Last Post: 6th August 2010, 16:27
  3. QDoubleSpinBox: dot as comma
    By Raccoon29 in forum Newbie
    Replies: 4
    Last Post: 21st May 2008, 19:44
  4. Numbers with comma format
    By baray98 in forum Qt Programming
    Replies: 2
    Last Post: 25th October 2007, 20:45
  5. int to QString with thousands separator
    By klaus1111 in forum Newbie
    Replies: 6
    Last Post: 6th January 2006, 23:06

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.