Workaround for Qt 5 bug that causes text copied to the clipboard to be lost when quitting the viewer on windows.

https://bugreports.qt-project.org/browse/QTBUG-41125