Answers for "pyqt5 python how to add a widgtet to a table"

0

pyqt5 python how to add a widgtet to a table

# initialize a table somehow
table = QTableWidget(parent)
table.setRowCount(1)
table.setColumnCount(1)

# create an cell widget
btn = QPushButton(table)
btn.setText('12/1/12')
table.setCellWidget(0, 0, btn)
Posted by: Guest on April-01-2021

Code answers related to "pyqt5 python how to add a widgtet to a table"

Python Answers by Framework

Browse Popular Code Answers by Language