Hi Sean

I tried your suggestion ( uses member variables to keep refs to
menubar/menu/actions ) but it still crashes.
I noticed something else that triggers the crash :

My main window uses a menu action to enable WhatsThis mode.
        self._helpMenu = self._menubar.addMenu("&Help")

Commeting out the following line avoids the crash too :

        self._helpMenu.addAction("&Whats
this...",QWhatsThis.enterWhatsThisMode)

Instead the following seems to work ( using my own receiver method ) :

        self._helpMenu.addAction("&Whats this...",self._onWhatsThis)

And a new method for the main window

    def _onWhatsThis(self):
        QWhatsThis.enterWhatsThisMode()

kind regards
Manuel

2014-02-24 21:00 GMT+01:00 Sean Fisk <[email protected]>:

> Hi Manuel,
>
> I would guess that it is a C++ scoping issue. I have had similar issues in
> the past and it is usually due to a C++ object that needs to stick around
> being dropped out of scope and then garbage-collected by Python.
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside

Reply via email to