Results 1 to 3 of 3

Thread: QwtPlotCurve. How to draw a line color?

Threaded View

Previous Post Previous Post   Next Post Next Post
  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)

Similar Threads

  1. Draw multiple color line
    By karankumar1609 in forum Qt Programming
    Replies: 4
    Last Post: 19th August 2013, 04:28
  2. Replies: 2
    Last Post: 9th November 2012, 17:16
  3. Replies: 8
    Last Post: 18th October 2012, 07:23
  4. Draw line with inverted background color
    By viswanath in forum Qt Programming
    Replies: 4
    Last Post: 12th November 2011, 03:57
  5. Replies: 1
    Last Post: 6th May 2010, 07: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.