BUG : make qApp global before using it

Make qApp global in backend_qt5.py before using it.

This silences a warning.
Merge pull request #3381 from tacaswell/qapp_global_fix

BUG : make qApp global before using it