[PyQt] advice needed for dragging icons off a toolbar

Danny Shevitz shevitz at lanl.gov
Sat Sep 18 19:48:11 BST 2010


> You're going to subclass QToolButton, override mouse{Press,Move}Event and 
> add them to the toolbar with QToolBar.addWidget(). It might be sufficient 
> to connect the pressed signal to a startDrag method in your main window. 
> Check the deleayedencoding example, I've send the other day.

Thanks again for your response. I am pretty sure I know enough to begin now.
I cannot find your delayedencoding example. Can you post a link or a thread 
title?

thanks,
Danny



More information about the PyQt mailing list