How to implement a right mouse pop menu when I click on row of QTableWidget?
-
(see title)
-
http://doc.qt.io/qt-5/qwidget.html#contextMenuPolicy-prop
http://doc.qt.io/qt-5/qwidget.html#customContextMenuRequested
http://doc.qt.io/qt-5/qtableview.html#indexAt
-
The answer above is correct!!
- add actions to the target widget.
- Set the contextMenuPolicy to "action"
- catch the triggered() signal and do things you want.