PyQt: TableWidget deselect all?
Asked Answered
A

1

6

So, I'm using Python with PyQt and I have a QTableWidget. What I want to do is to, at some point, deselect everything in the QTableWidget. Is there a simple way to do that? I mean, there is a select_all option, but I can't find anything to deselect all...

Arabic answered 20/7, 2013 at 9:11 Comment(2)
what do you mean by deselect?Yokefellow
Deselect all cells in the TableWidget that might be selected...Arabic
G
9

You should use the clearSelection method on the QTableWidget.

Edit: updated the link towards qt.io.

Gilbertson answered 22/7, 2013 at 9:14 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.