[PyQt] Drag & Drop with QTreeWidget

NARCISO, Rui RUI.NARCISO at airbus.com
Wed Dec 2 15:05:22 GMT 2009


>> and when doing so create the sub-node "Folder1" if it does not exist within 
>> "campaign" and put the dragged items under "folder1" (and not 
>> "campaign" where they were dropped). How to do this ? Do I do this 
>> in a dropEvent? In a dropEventAction ?
>
>you could monitor the tree using QTreeView.rowsInserted and then 
>reparent dropped items as necessary.

Hi again, 

I have tried but I am unable from redefining rowsInserted to reparent the items.
I am having problems combining the information QModelIndex used by rowsInserted and the QAbstractModel automatically set-up behind the scenes by QTreeWidget ....

Help !!!!!

_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

This mail has originated outside your organization, either from an external partner or the Global Internet.
Keep this in mind if you answer this message.



The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.




More information about the PyQt mailing list