Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Best way to implement a Button for an action in a QTableView
Andy314 last edited by
I need a simple QPushButton in all rows in a specific column which performs an action (for the row).
I want no twice click to first enable an editor and then click the button.
There seem a lot of possible methods - what method is common used.
VRonin last edited by VRonin
I'd implement a delegate that does the painting and nothing else and connect a slot to QAbstractItemView::clicked to handle the event as you don't have to worry about identifying what button was clicked