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

Signal emitted by QTableView, by highlighting a record and not by clicking



  • Hi! I need to emit a signal by a TableView, while I highlight a records with arrow keys. QTable view has only signal like "actived" or "clicked".

    Can anyone help me?
    Thanks a lot



  • Hi,

    you can use:

    @
    QItemSelectionModel* pSelModel = pView->selectionModel();
    // signals:
    QItemSelectionModel::currentChanged
    QItemSelectionModel::currentColumnChanged
    QItemSelectionModel::currentRowChanged
    QItemSelectionModel::selectionChanged
    @


Log in to reply