Results 1 to 2 of 2

Thread: QwtPlotCurve Selection

  1. #1
    Join Date
    Aug 2008
    Posts
    11
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QwtPlotCurve Selection

    Hi,

    I have created a QwtPlotCurve and attached to a QwtPlot as follows:

    QWaveFormPlot::QWaveFormPlot(void) // this is derived from QwtPlot
    {
    QwtPlotCurve* SigCurve = new QwtPlotCurve("Curve1");
    SigCurve->attach(this);
    }

    How to select the curve in the plot and highlight it?

    Thanks & Regards,
    WXNSNW

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

    Default Re: QwtPlotCurve Selection

    Have a look at the CanvasPicker class from the event_filter example.

    Uwe

Similar Threads

  1. [SOLVED] QTreeView drawing selection with icons
    By Timewarp in forum Qt Programming
    Replies: 7
    Last Post: 7th February 2013, 07:52
  2. Replies: 1
    Last Post: 18th November 2009, 23:21
  3. Drawing a selection rectangle
    By Caius Aérobus in forum Qt Programming
    Replies: 7
    Last Post: 4th April 2009, 15:47
  4. Save & Restore a selection in QTreeWidget
    By youkai in forum Qt Programming
    Replies: 1
    Last Post: 1st September 2008, 19:54
  5. CheckBox and selection in QTableView
    By Mike Krus in forum Qt Programming
    Replies: 1
    Last Post: 21st September 2006, 20:31

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.