Results 1 to 2 of 2

Thread: change the pixel size of major interval in Qwt

  1. #1
    Join Date
    Jun 2014
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default change the pixel size of major interval in Qwt

    In qwt, how to change the major interval size, for example, the interval widthof an histogram (in pixel) to make one axis more "compact".

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

    Default Re: change the pixel size of major interval in Qwt

    Like any other widget a QwtPlot returns a sizeHint() and a minimumSizeHint() to feed the Qt layout system. What geometry is calculated in the end is up to your layout, so if you want to have the plot smaller, configure your QLayout to make it smaller.

    The only thing to take care of is the minimumSizeHint(), that depends on the size that is needed to display the tick labels without overlapping. Less major ticks usually means a smaller size hint.

    Uwe

Similar Threads

  1. How to change the Interval Type in QwtPlot?
    By ObiWanKenobe in forum Qwt
    Replies: 4
    Last Post: 16th April 2013, 11:58
  2. Replies: 2
    Last Post: 16th February 2012, 23:10
  3. how to get screen pixel size?
    By kodiak in forum Qt Programming
    Replies: 6
    Last Post: 26th August 2008, 18:59
  4. Replies: 1
    Last Post: 24th October 2006, 16:40
  5. how change the QListBox item position by pixel
    By roy_skyx in forum Qt Programming
    Replies: 2
    Last Post: 20th January 2006, 01:34

Tags for this Thread

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.