On Mon, 16 Aug 2010 22:59:22 +0000 (UTC), danny <[email protected]> wrote:
> thanks,
> 
> your solution works, and stops my code from seg faulting. I'm curious
> why mine doesn't work. In the documentation for QMainWindow
> 
>
http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qmainwindow.html#addToolBar-3
> 
> The third overloading of the addToolBar method, was what I was using.
> 
> It should be equivalent, but I must be missing something.

There does seem to be a bug. Even though addToolBar() takes ownership of
the toolbar, removeToolBar() doesn't change the current ownership.

It will be fixed in tonight's snapshot. The consequence is that you have
to do extra work to really delete a removed toolbar, ie. reparent it to
None.

Phil
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to