fix qt gui for QT5