문제

Which function can be used to select an item in a tree view (or model) with Qt? I even don't know the function is in tree view or model. How to do it? Any function like select(const QModelIndex & index)? Thanks.

도움이 되었습니까?

해결책

QTreeView deals in QModelIndexes. You can control selections through the selectionModel on the view:
http://doc.qt.digia.com/qt/qabstractitemview.html#selectionModel

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top