1

i use this offical example https://doc.qt.io/qtforpython-6/examples/example_widgets_itemviews_jsonmodel.html then i want to make vaule be clicked in QTreeView by a specific value。like this enter image description here

maybe it means update treeView's currentIndex

i tried this way ,but QModelIndex can not be updated

index = QModelIndex(3,3,QModelIndex()) view.setCurrentIndex(index)

sorry , my English is not good

UnderHeart
  • 11
  • 1
  • 1
    Hey, could you make a reproducible example to help other people answer? https://stackoverflow.com/help/minimal-reproducible-example – Peter May 26 '23 at 11:15

0 Answers0