It's possible this patch might help, although I'm not sure:

https://codereview.qt-project.org/#change,81593