Results 1 to 3 of 3

Thread: DoubleClick on QwtLegend

  1. #1
    Join Date
    Dec 2013
    Location
    Jerada, Morroco
    Posts
    106
    Thanks
    11
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default DoubleClick on QwtLegend

    Can i Right doubleClick on QwtLegend and let it in mode checkable , i need them both.

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: DoubleClick on QwtLegend

    Hey buddy, There is not right double click action as such. void QwtLegend::clicked (const QVariant & itemInfo, int index ) will accept only left click or either create one class deriving from the QwtLegend class and write your own click method into it.
    Last edited by sonulohani; 11th February 2014 at 11:56.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  3. The following user says thank you to sonulohani for this useful post:

    hassinoss (11th February 2014)

  4. #3
    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: DoubleClick on QwtLegend

    More detailed: you have to overload QwtLegend::createWidget(). Have a look at the default implementation in qwt_legend.cpp to get an idea what to do.

    Uwe

  5. The following user says thank you to Uwe for this useful post:

    hassinoss (12th February 2014)

Similar Threads

  1. QTableView crashes after doubleclick
    By nickla in forum Qt Programming
    Replies: 2
    Last Post: 18th March 2011, 19:22
  2. doubleclick with tableview reacts only once
    By qt_gotcha in forum Newbie
    Replies: 1
    Last Post: 13th July 2010, 17:17
  3. QTimeEdit / QDateEdit doubleclick behavior
    By osiris81 in forum Qt Programming
    Replies: 1
    Last Post: 26th June 2009, 17:28
  4. Prevent docking on doubleclick
    By yartov in forum Qt Programming
    Replies: 3
    Last Post: 24th June 2008, 20:46
  5. [QT4 & XP] doubleClick on QtreeView
    By incapacitant in forum Newbie
    Replies: 2
    Last Post: 2nd March 2006, 12:15

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.