Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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