fix nav_qt.py for qt4/5