Results 1 to 7 of 7

Thread: qwtlegend

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Posts
    34
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qwtlegend

    Hi,

    i use a QwtPlot with a QwtPlotShapeItem...


    Qt Code:
    1. path.addRect(....);
    2.  
    3. plotShapeItem.setRenderHint(QwtPlotItem::RenderAntialiased, true);
    4. plotShapeItem.setShape(path);
    5. plotShapeItem.setItemAttibute(QwtPlotItem::Legend, true);
    6. plotShapeItem.setLegendMode(QwtPlotShapeItem::LegendShape);
    7. plotShapeItem.setLegendIconSize(QSize(20, 20));
    8. plotShapeItem.setTitle(QString("Winter"));
    9. plotShapeItem.attach(&plot);
    To copy to clipboard, switch view to plain text mode 

    how can i make the legend for plotShapeItem enabled? I dont know how to config the QwtLegend in this case... See here:
    legend.png

    I would need the QwtLegendLabel and call setchecked(true)...ideas?

    Thanks,
    S
    Last edited by Surfman19; 5th August 2015 at 15:10.

Similar Threads

  1. Replies: 5
    Last Post: 26th June 2015, 15:00
  2. DoubleClick on QwtLegend
    By hassinoss in forum Qwt
    Replies: 2
    Last Post: 11th February 2014, 17:37
  3. Qwt 6.1.0 trunk and QwtLegend
    By carhun in forum Qwt
    Replies: 0
    Last Post: 22nd August 2012, 09:13
  4. QwtPolarMarker and QwtLegend
    By lokida in forum Qwt
    Replies: 4
    Last Post: 29th March 2011, 09:00
  5. QwtLegend size
    By baray98 in forum Qwt
    Replies: 3
    Last Post: 11th May 2010, 09:55

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.