[Qt-interest] TreeWidget Drag and drop

John McClurkin jwm at nei.nih.gov
Mon Jun 22 16:59:34 CEST 2009


Yuvaraj R wrote:
> Hi All
>  
>  I enabled the drag and drop event for TreeWidget...
>  
> only toplevelitems have to accept the the drops ..and if it have the 
> dropped item, it has to neglect the drops...
>  
> Simply i enabled the drag and drop option... all items are accepting the 
> drops..
>  
> How do i implement above functionalties...
>  
> Any idea ..if any know please give me a sample code..
>  
> Thanks for advance..
>  
> Thanks & Regards
>  
> Yuvaraj R
There are 6 different examples of drag and drop in the examples 
directory in the Qt distribution. Doesn't one of those meet your needs?



More information about the Qt-interest-old mailing list