Apr-04-2025, 06:41 PM
Hi, guys...
I have a qtablewidget with 3 columns that shows registers from my database.
Each row has a checkbox in the 3rd column.
Im trying to retrieve the content in the first cell that has the checkbox checked.
Here is the code :
Thanks
I have a qtablewidget with 3 columns that shows registers from my database.
Each row has a checkbox in the 3rd column.
Im trying to retrieve the content in the first cell that has the checkbox checked.
Here is the code :
items = [] for i in range(self.tblparc.rowCount()): item = self.tblparc.item(i,2) if item.checkState() == QtCore.Qt.Checked: items.append(self.tblparc.itemAt(i,0))Is it right ? How can I retrieve the contents ?
Thanks