PDA

View Full Version : QTreeView



bunjee
4th March 2009, 20:24
Hey there,

There is no rightClick() signal on a QTreeView widget.
How can I be notified when an item is right clicked in my treeView?

Thanks.

Lykurg
4th March 2009, 20:51
Of course you can deal with mouse press event and look which button is used, but you can also - if you are a bad boy - deal with QWidget::customContextMenuRequested (wich is triggered when the right mouse button is used) and then determinate the item via itemAt()! This is of course only possible if you don't want to use this menus...