work around the issue with pyside and cursors on linux