[PyQt] itemview drag and drop problems

Phil Thompson phil at riverbankcomputing.co.uk
Mon Jul 9 15:05:04 BST 2007


On Friday 06 July 2007 1:37 am, Adam Tenderholt wrote:
> I've been playing around with the PyQt4.3a1 windows binary package and
> have run into some problems. ItemViews appear to ignore the
> ItemIsDropEnabled flag for top level items. Attached is a modified
> simpletreemodel script that enables drags and drops for all items. Any
> item can be dragged, but drops to top level items aren't allowed while
> drops to second-level items are allowed. (Of course the code isn't
> setup to accept drops, so there will be an error if you try to drop.)
>
> It works as expected using PyQt 4.1.1 (yes, I'm a few releases behind)
> on Windows (Python 2.4.3) and PyQt 4.1 on Mac (Python 2.4.3).
>
> Any ideas?

If you make similar changes to the original C++ example you get the same 
behaviour - so it doesn't sound like a PyQt problem.

Phil


More information about the PyQt mailing list