I would like to create a table whose cells are buttons like:
Attachment 5098
Can one put a QPushButton into a QTableWidget cell?
Printable View
I would like to create a table whose cells are buttons like:
Attachment 5098
Can one put a QPushButton into a QTableWidget cell?
Yes, via a delegate.
Check the documentation and examples.
@tbscope, thank you for your reply.
Could you please point to some specific example, that'd be helpful. Thanks! :)
After consulting with a co-worker, maybe it's easier to use QTableWidget::setCellWidget(int row, int column, QWidget * widget ) ...by passing a QPushButton * into the QWidget * parameter.