Question: qtreeview how to select a row?
Answer: Selecting a row in QTreeView programmatically Unified the row using an QItemSelection. selection->select(idx, QItemSelectionModel::Select | QItemSelectionModel::Rows); By clearing the solutions: selection->select(idx, QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);