I want to know how to put a widget into a tableView along with the row from my database table?(each row has it's own widget) like a QPushbutton which suppose is the delete button for the row and when is clicked deletes that row from corresponding table.
should I paint the shape of the button and set editor to a QPushbutton using an QItemDelegate? or what are other approaches ?
---
thanks in advance