Patch from upstream bug report: https://bugreports.qt-project.org/browse/QTBUG-33496 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>