Results 1 to 2 of 2

Thread: Axis margins

  1. #1
    Join Date
    Dec 2009
    Posts
    24
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Axis margins

    hey,

    I am trying to tile a qwt plot on top of another QWidget I designed.

    I need to have the complete width of the QwtPlot to display data...
    I already managed to get the Y axis to be drawn inside the canvas....

    Now the only pb is the the little margins on the side of the Xaxis, there seems to be extra room allocated on the canvas to cater for the size of the labels...

    how can I have my curve occupying the whole canvas width?

    cheers

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

    Default Re: Axis margins

    Throw away your implementation, disable the y axes and insert a QwtPlotScaleItem instead.

    Uwe

Similar Threads

  1. Replies: 0
    Last Post: 9th August 2010, 10:46
  2. Widget Margins
    By qtoptus in forum Qt Programming
    Replies: 8
    Last Post: 24th July 2010, 01:29
  3. QwtPlot margins
    By jmsbc in forum Qwt
    Replies: 0
    Last Post: 2nd October 2009, 18:11
  4. QToolButton margins
    By bjoernbg in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2008, 09:28
  5. margins in QSimpleRichText
    By Pan Wojtas in forum Qt Programming
    Replies: 3
    Last Post: 10th February 2006, 16:34

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.