StrikeByte
8th October 2014, 10:14
At the moment im struggeling to get the TreeModel to work properly.
The biggest problem i have right now is how to use beginInsertRows and beginRemoveRows when adding or removing tree items, I cant seem to get the QModelIndex &parent that i need for those functions.
all the examples inherit the insertRows and removeRows, but i do not use a view to select the insert or deletion point, i have another model that adds or removes items to and from the tree.
How do i create or find the QModelindex &parent that i need for beginInsertRows or beginRemoveRows?
The biggest problem i have right now is how to use beginInsertRows and beginRemoveRows when adding or removing tree items, I cant seem to get the QModelIndex &parent that i need for those functions.
all the examples inherit the insertRows and removeRows, but i do not use a view to select the insert or deletion point, i have another model that adds or removes items to and from the tree.
How do i create or find the QModelindex &parent that i need for beginInsertRows or beginRemoveRows?