hello all
quick question
im using in Treewidget the customContextMenuRequested signal and using using popup with qmenu
How can I get the item pointer / object / reference that just bean right clicked before the popup executed
I need to make some validation on the item
hello all quick question im using in Treewidget the customContextMenuRequested signal and using using
Share
That signal contains a
QPoint,QWidget::customContextMenuRequested(const QPoint & pos), which you can pass toQTreeWidget::itemAt(const QPoint & p)which returns aQTreeWidgetItem.