How to select complete row from QTableWidget
-
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? -
Call this method for you QTableWidget
@setSelectionBehavior(QAbstractItemView::SelectRows);@ -
@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: