Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyQt: TableWidget deselect all?

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...

like image 804
Antoni4040 Avatar asked Jul 20 '13 09:07

Antoni4040


1 Answers

You should use the clearSelection method on the QTableWidget.

Edit: updated the link towards qt.io.

like image 89
Frodon Avatar answered Oct 22 '22 17:10

Frodon