matplotlib/matplotlib — pull request #1559 by ChrisBeaumont (2012-12-04 21:18:28+00:00)
Title: Workaround for QT cursor bug in dock areas

Someone pointed out to me that the change in https://github.com/matplotlib/matplotlib/issues/1433 doesn't work when plots are embedded within QDockAreas (the cursor never changes). This is probably related to the Qt bug discussed [here](https://bugreports.qt-project.org/browse/QTBUG-4190).

To reproduce the issue, under MPL 1.2.0: https://gist.github.com/4208745

This PR sets the cursor at a different level in the widget hierarchy, and seems to sidestep the problem.

Note that I haven't checked whether this change breaks the original problem addressed by https://github.com/matplotlib/matplotlib/pull/1404