Re: [PyQt] stopping tool button from staying depressed in D

2010-09-21 Thread danny
> Danny, show us your overload, or even better a minimum runnable example. > > You should also catch the mousePressEvent and prevent the press from being > delivered to the Qt event machinery, e.g. call event.ignore() on left > clicks. > > Consequently, you should start the drag yourself in th

Re: [PyQt] stopping tool button from staying depressed in D

2010-09-21 Thread Hans-Peter Jansen
On Tuesday 21 September 2010, 18:30:33 danny wrote: > Howdy, > > I'm in progress dragging icons off a toolbar. I currently create > QToolButtons and use addWidget to add them to the toolbar. I am starting > the drag by connecting to the pressed even of the QToolButton, e.g. > > button.pressed.conne

[PyQt] stopping tool button from staying depressed in D

2010-09-21 Thread danny
Howdy, I'm in progress dragging icons off a toolbar. I currently create QToolButtons and use addWidget to add them to the toolbar. I am starting the drag by connecting to the pressed even of the QToolButton, e.g. button.pressed.connect(self.startDrag) Life is good. I have a small visual artifact