J
J
joi64rus2017-11-16 12:46:58
Python
joi64rus, 2017-11-16 12:46:58

Python how to return row, colum from a widget in a QTableWidget cell?

Filled the plate with buttons. how to return Row, Colum of clicked button in grid
self.table.setColumnCount(100)
self.table.setRowCount(100)
for i in range(self.table.rowCount()):
for j in range(self.table.columnCount( )):
self.table.setCellWidget(i,j, QPushButton())
self.table.setRowHeight(i,25)
self.table.setColumnWidth(i,25)
j =+1
i =+1

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question