Which classes do you use, which model etc. etc. Please ask proper, more precise questions. Otherwise we can only say: Read the documentation! (setCurrentIndex() and QAbstractItemView::SelectRows as a start).