Results 1 to 2 of 2

Thread: QwtPlot::setMargin() in Qwt 6.0

  1. #1
    Join Date
    Nov 2011
    Posts
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QwtPlot::setMargin() in Qwt 6.0

    Hi all,

    in Qwt 5.2.1 there has been a QwtPlot::setMargin() function.
    This seems to be removed in Qwt 6.0
    What's the new function in Qwt 6.0? How can I generate a margin around the plot (but within the outer frame, i.e. setContentsMargin does not do the job)?

    Greetings,
    Axel

  2. #2
    Join Date
    Nov 2011
    Posts
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QwtPlot::setMargin() in Qwt 6.0

    setStyleSheet("QwtPlot { padding: 3px }")
    solves the problem.

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

    alizadeh91 (1st February 2012)

Similar Threads

  1. QwtPlot cursor
    By hamid ghous in forum Qwt
    Replies: 6
    Last Post: 3rd March 2016, 06:30
  2. communication between ui and qwtplot
    By thebrute in forum Qwt
    Replies: 2
    Last Post: 6th September 2010, 15:08
  3. QwtPlot on ui form
    By qt_gotcha in forum Newbie
    Replies: 2
    Last Post: 30th June 2010, 14:12
  4. QwtPlot margins
    By jmsbc in forum Qwt
    Replies: 0
    Last Post: 2nd October 2009, 18:11
  5. Replies: 6
    Last Post: 14th May 2009, 12:02

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.