Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Changing parent of rowsInserted
chrismit7 last edited by
Within a QTreeView I'm representing the available lua global namespace to users. So basically this is a variable GUI. Within this, they can move tables/variables around to other QTreeWidgets and have those changes reflected in the lua backend. An issue I'm encountering is the user can drag things like a table and insert them into a integer. I want to stop this by reparenting the drop target (the integer) into the table that is the parent of the integer. This is accomplished by a simple call to the integer's parent. However I can't seem to change the parent within the rowInserted method.
So my question in short is: how can I change the parental target of a rowInserted method.