Try PySide then PyQt4 for Qt4 examples.

Use the correct connect method for PySide.

This should make the examples work with both PyQt4 and PySide (I can only test the later)

Note that when I tested it with PySide the animation example would update the graph but not the frame around it.

I also only tested it on OSX. I only tested it with PySide because MPL picks PySide in preference when it and PyQt4 are installed.