Hack around https://bugreports.qt-project.org/browse/QTBUG-22829 to solve issue #180.