PDA

View Full Version : DoubleClick on QwtLegend



hassinoss
7th February 2014, 19:31
Can i Right doubleClick on QwtLegend and let it in mode checkable , i need them both.

sonulohani
11th February 2014, 11:51
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.

Uwe
11th February 2014, 17:37
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