[PyKDE] D'nD problem

Ricardo Javier Cardenes ricardo at conysis.com
Tue Jul 2 18:53:00 BST 2002


On Tue, Jul 02, 2002 at 03:02:01PM +0200, Thierry Jouve wrote:
> 
> With this script, all is good, except that "dropEvent" method is not
> called in the target widget when user released the mouse button... And I
> don't know why !!
> 

What if you connect the 'dropped' signal to that method?:

[...]

class IconViewTarget(QIconView):

   def __init__(self, parent = None, name = None) :
      QIconView.__init__(self, parent, name)
      self.setAcceptDrops(1)
      QObject.connect( self, SIGNAL("dropped(QDropEvent*, const QValueList<QIconDragItem> &)"), self.dropEvent )

[...]




More information about the PyQt mailing list