[PySide] uncheck button after drag&drop

Frank Rueter | OHUfx frank at ohufx.com
Fri Apr 13 10:54:56 CEST 2012


Hi everyone,

me again :)

I just implemented the tutorial on this page 
<http://zetcode.com/gui/pysidetutorial/dragdrop/> into my code as I 
needed to be able to copy QPushButtons from one widget to another via 
Drag&Drop. It all works great, accept for the fact that the original 
button that I drag becomes checked and stays checked after I drop it 
into the other widget.
The example on the above page actually has the same problem accept it 
doesn't matter in that example.

The QPushButton is not set to be checkable and I've tried using 
setChecked( False ) on the button both in the dragEnterEvent as well as 
the dropEvent, but to no avail.

Any ideas how to make the button uncheck itself after it was dropped?


Cheers,
frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20120413/84c2fd99/attachment.html>


More information about the PySide mailing list