[PyQt] Drag and Drop when using designer

Jan Ekholm jan.ekholm at smultron.net
Thu Oct 25 08:30:55 BST 2007

On Thursday 25 October 2007, Nahuel Defossé wrote:
> Hi!
> I've made all my gui with designer. I have some List Views there that need
> drag and drop funcitonality so I need to add them some methods to handle
> the drop events properly, and set the accept drops to True... but I can't
> add those methods with setattr, they don't work, it seems I have to
> subclass the List Views.
> Is there any way to get the drop thing without altering the set up that
> setupUi method does?

You could look into promoting the views on your form. That means you can still 
design with Designer but you end up using your own subclasses. Works fine 
with PyQt too.

Jan Ekholm
jan.ekholm at smultron.net

More information about the PyQt mailing list