fixed for QT5.1