I would like to create a table whose cells are buttons like:
table_of_buttons.PNG
Can one put a QPushButton into a QTableWidget cell?
I would like to create a table whose cells are buttons like:
table_of_buttons.PNG
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!
ShaChris23 (27th August 2010)
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.
Bookmarks