On Fri, Mar 7, 2014 at 3:45 AM, Almar Klein <notifications@github.com>wrote:

> In vispy/app/backends/_qt.py:
>
> > @@ -88,6 +89,19 @@
> >  BUTTONMAP = {0: 0, 1: 1, 2: 2, 4: 3, 8: 4, 16: 5}
> >
> >
> > +def _get_qt_app():
> > +    """Safely create Qt application"""
> > +    global qApp
> > +    if QtGui.QApplication.startingUp():
> > +        app = QtGui.QApplication.instance()
> > +        if app is None:
> > +            qApp = QtGui.QApplication([''])
> > +            qApp.lastWindowClosed.connect(qApp.quit)
>
> I am not sure whether we want this.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/vispy/vispy/pull/180/files#r10376396>
> .
>

Definitely should be left to the user, and should probably be False for
interactive sessions.
In any case, the connection is unnecessary because of this:
http://qt-project.org/doc/qt-4.8/qapplication.html#quitOnLastWindowClosed-prop