Changing parent of rowsInserted



  • 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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.