Results 1 to 3 of 3

Thread: QwtPlotCurve. How to draw a line color?

  1. #1
    Join Date
    Apr 2017
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Question QwtPlotCurve. How to draw a line color?

    Good afternoon, dear colleagues.
    I have a question, in how to add some inscription, to the legend.
    Let's say I draw some kind of graph. I need to give out the radius of the circle on the right, etc. How best to do this? My only assumption is
    Qt Code:
    1. QString S = "Rad =";
    2. S=S+R;
    3. QwtPlotCurve *curve = new QwtPlotCurve(S);
    4. curve ->setPen(Qt::black,2);
    To copy to clipboard, switch view to plain text mode 

    Is it possible to somehow display their information in this area?
    And how can you control its geometry (indentation)
    Thank you.
    Attached Images Attached Images
    • File Type: jpg 1.jpg (47.0 KB, 9 views)

  2. #2
    Join Date
    Apr 2017
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QwtPlotCurve. How to draw a line color?

    Or maybe it's possible to put a button on this area somehow?

  3. #3
    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: QwtPlotCurve. How to draw a line color?

    Your code already results in a custom text on the legend item - so what exactly is your question ?

    Uwe

Similar Threads

  1. Draw multiple color line
    By karankumar1609 in forum Qt Programming
    Replies: 4
    Last Post: 19th August 2013, 05:28
  2. Replies: 2
    Last Post: 9th November 2012, 18:16
  3. Replies: 8
    Last Post: 18th October 2012, 08:23
  4. Draw line with inverted background color
    By viswanath in forum Qt Programming
    Replies: 4
    Last Post: 12th November 2011, 04:57
  5. Replies: 1
    Last Post: 6th May 2010, 08:25

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.