[PyKDE] QDropEvent::source() does not behave correctly

Phil Thompson phil at riverbankcomputing.co.uk
Thu Aug 14 09:37:01 BST 2003


On Thursday 14 August 2003 6:18 am, Sok Ann Yap wrote:
> According to the documentation...
> ======================================
> QWidget * QDropEvent::source () const
>
> If the source of the drag operation is a widget in this
> application, this function returns that source, otherwise it
> returns 0. The source of the operation is the first parameter to
> drag object subclasses.
>
> This is useful if your widget needs special behavior when
> dragging to itself, etc.
> ======================================
>
> Now, I have a QListView, and dnd from Konqueror does not return
> 0 with source(), while dnd from within the application always
> return a different object everytime even though I constructed
> QUriDrag with the QListView as the dragSource.
>
> Thanks in advance for any help!

A short, complete script demonstrating the problem would help.

Phil




More information about the PyQt mailing list