Results 1 to 2 of 2

Thread: Selecting a QwtPlotCurve and sublcasses in a QwtPlot

  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Thanks
    165
    Thanked 2 Times in 2 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Selecting a QwtPlotCurve and sublcasses in a QwtPlot

    Hello!

    I have a QwtPlot and on it a may both draw normal QwtPlotCurve items as well as derived classes from them. This items may be alone, by themselves, or they may be a figure construction (for example, a channel figure made of two parallel QwtPlotCurves form a unique item).

    Once draw (no problems here), I need to give the user the possibility of selecting (and highlighting the selection by making the curve more thick/fat) both simple curves, derivatives or the entire object made of some curves when only one of them is clicked, but I'm having problems with learning how to do this (and in a efficient way).

    I know that there are two examples in the Qwt example libs, event_filter (which is outdated, as far as I remember reading Uwe's comments about it) and itemeditor, that give some hints about selecting and moving drawed objects inside a QwtPlot, but for now I've being uncapable of doing this selection stuff. Particularly, I'm not sure how could I identify a composed object (one made of some QwtPlotCurves) when one of its items is selected.

    Could somebody please give me some hints about this? Remember that it should be as efficient as possible. I'm glad for any help.


    Thanks,

    Momergil


    Note: a working code is always preferable ^^

  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: Selecting a QwtPlotCurve and sublcasses in a QwtPlot

    Sorry but this question too unspecific to be answered. Is it about how to decide if a position ( = mouse click ) on the canvas "matches" a curve ?

    Uwe

Similar Threads

  1. Replies: 8
    Last Post: 9th February 2014, 13:37
  2. Selecting QwtPlotCurve from QwtPlot
    By Christoss in forum Qwt
    Replies: 11
    Last Post: 23rd July 2013, 13:32
  3. Replies: 1
    Last Post: 11th May 2012, 09:02
  4. Selecting a QwtPlotCurve object.
    By mah_singh1 in forum Qwt
    Replies: 1
    Last Post: 21st April 2009, 08:12
  5. Replies: 2
    Last Post: 25th March 2008, 15:36

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.