Simple PyQt5 compatibility for backend_qt4