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.
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.
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...
Bookmarks