Results 1 to 3 of 3

Thread: Select multiple curves

  1. #1
    Join Date
    Oct 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Select multiple curves

    Hi,

    I have a QwtPlot object with several QwtPlotCurves drawn in it. By connecting picker's "selected( const QwtDoublePoint & )" signal to my method, I can select one curve at a time and it works as expected.

    Now I want to be able to select several of them by holding Shift while clicking on each of the curves but I've noticed that, while holding Shift, "selected" is never emitted (or at least my slot method is never called). Any idea on how to do that? I've checked the other signals, and even tried "void selected (const QwtArray< QwtDoublePoint > &pa)" as it expects an array of points, but same thing -i.e. nothing- happens.

    My selection flags are set to PointSelection.

    Thanks in advance!

  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: Select multiple curves

    See QwtEventPattern.

    Uwe

  3. #3
    Join Date
    Oct 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Select multiple curves

    Thanks, Uwe, but I already checked QwtEventPattern but still no clues on how to use it.

    I tried something but it didn't work because of "selected" not being emitted while Shift was pressed. I'll try to post the code later (I don't have it at hand right now).

Similar Threads

  1. Replies: 2
    Last Post: 1st August 2009, 11:44
  2. Multiple curves on top of each other
    By jmsbc in forum Qwt
    Replies: 2
    Last Post: 15th July 2009, 19:46
  3. Select multiple files from QFileDialog
    By jiveaxe in forum Qt Programming
    Replies: 6
    Last Post: 16th February 2009, 14:57
  4. QTableWidget - Select multiple rows.
    By wally in forum Qt Programming
    Replies: 2
    Last Post: 21st October 2008, 17:15
  5. Replies: 10
    Last Post: 18th September 2008, 15:14

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.