I have a TreeView and set it to a SQL model based on QAbstractItemModel.
I want to add child items to a selected item from click event which recalls data from QSqlQueryModel.
I can't find the method to use.
QTreeWidgetItem has a method called addChild() but I don't know how to get the selected item from the treeView.