How to select complete row from QTableWidget
-
wrote on 11 Oct 2011, 08:53 last edited by
Hi All
I have created a Table using QtableWidget and inserted cells in it using QTableWidgetItem;
When i click any cell only that particular cell gets displayed as selected.
How to show that complete row as selected when user clicks any of the cell? -
wrote on 11 Oct 2011, 08:58 last edited by
Call this method for you QTableWidget
@setSelectionBehavior(QAbstractItemView::SelectRows);@ -
Call this method for you QTableWidget
@setSelectionBehavior(QAbstractItemView::SelectRows);@wrote on 15 May 2022, 08:08 last edited by@vsorokin said in How to select complete row from QTableWidget:
Call this method for you QTableWidget
@setSelectionBehavior(QAbstractItemView::SelectRows);@It works, thank you for sharing.
Here's the way in QtDesigner: