문제

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

도움이 되었습니까?

해결책

You should use the clearSelection method on the QTableWidget.

Edit: updated the link towards qt.io.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top