Applying patch to the issue https://bugreports.qt-project.org/browse/QTBUG-35670