Results 1 to 2 of 2

Thread: Qwt: curve with padding

  1. #1
    Join Date
    Aug 2013
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Post Qwt: curve with padding

    I want to draw curves with padding(rounding corners). I searched but nothing found. Is there any information about this?

    This is how to i draw curves in qwt:

    Qt Code:
    1. curve->setPen(QColor(color),width);
    2. p<<QPointF(x1,x2)<<QPointF(x1,x2);
    3.  
    4. curve->setSamples(p);
    5. curve->attach(this);
    To copy to clipboard, switch view to plain text mode 
    Last edited by alperyazir; 11th November 2014 at 08:44.

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

    Default Re: Qwt: curve with padding

    See QPen::setJoinStyle. If your question is about spline interpolation ( QwtSplineCurveFitter ) I would recommend to check the code from SVN trunk.

    Uwe

Similar Threads

  1. Replies: 1
    Last Post: 29th September 2013, 10:12
  2. Adding some padding to a button
    By scarleton in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2010, 16:18
  3. Replies: 4
    Last Post: 29th April 2010, 07:11
  4. Replies: 1
    Last Post: 22nd January 2010, 15:34
  5. QLineEdit padding
    By bunjee in forum Qt Programming
    Replies: 0
    Last Post: 17th September 2008, 23:43

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.