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);@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.