Results 1 to 4 of 4

Thread: Force numbers to display in scientific notation

  1. #1
    Join Date
    Apr 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Force numbers to display in scientific notation

    Is it possible to force the numbering in Qwt to be in scientific notation?

    My main problem is that I'm dealing with scales around 1e-10, and QwtPlotZoomer displays the mouse tracker as 0.0000, 0.0000.

    Can I force those numbers to display something like 1.50443e-10? I couldn't find anything in the documentation.

    Is this something I would have to define myself in Qt?

    Thanks,
    Dane Larsen

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

    Default Re: Force numbers to display in scientific notation

    Overload QwtPlotZoomer::trackerText.

    Uwe

  3. #3
    Join Date
    Apr 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Force numbers to display in scientific notation

    I figured that would be the case. Thanks for confirming it!

    Dane

  4. #4
    Join Date
    Apr 2010
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Force numbers to display in scientific notation

    Worked perfectly. Thanks Uwe.

    Dane

Similar Threads

  1. How to use QLCDnumber to display negative numbers?
    By grissiom in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2010, 07:23
  2. Replies: 1
    Last Post: 12th January 2010, 13:42
  3. qdoublespinbox with scientific notation
    By pospiech in forum Qt Programming
    Replies: 13
    Last Post: 3rd January 2009, 15:50
  4. Hungarian Notation vs others
    By sunil.thaha in forum General Programming
    Replies: 11
    Last Post: 27th September 2007, 07:49
  5. My scientific plot problem
    By baray98 in forum Qt Programming
    Replies: 2
    Last Post: 5th August 2007, 16:01

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.