Skip to content Skip to sidebar Skip to footer

Signals Emitted By Embedded Checkbox In QTableWidget

I currently have a setup where I am trying to embed checkboxes in a QTableWidget. I am setting the checkbox cells in the following way: chkbox1 = QTableWidgetItem() chkbox1.setFlag

Solution 1:

Signal signature is wrong. It should be itemChanged(QTableWidgetItem *) (Note the *):

self.connect(self.tblData, SIGNAL('itemChanged(QTableWidgetItem *)'), self.updatePlot)

or better, use the new style connections:

self.tblData.itemChanged.connect(self.updatePlot)

Solution 2:

I guess you have to use ItemClicked signal instead. Since itemChanged signal is emitted when the data is changed and data is the text perhaps.


Post a Comment for "Signals Emitted By Embedded Checkbox In QTableWidget"