Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can i get information about editing items of QTreeView?
Hello, i have some QTreeView with QStandardItemModel.
How can i know witch item of QTreeView or index of QStandardItemModel currently being edited?
jys0224 last edited by
i think you can get QModelIndex
thru QTreeView's currentIndex() or
thru QTreeView's selectionModel() 's features,,
This functions return selected item/items but the fact that the index is chosen does not mean that it is edited
Jeroentjehome last edited by
Maybe read the Model/View tutorial. It is very easy to read and includes selection options.
I solved my problem by checking state of my itemView and currentIndex() function.
Thank you for help!