apply fix according to https://bugreports.qt-project.org/browse/QTBUG-27469