I was trying for dome time to use the Pyside Backend (qt4Agg with pySide), with no success, but after reading the beckend code I’ve finally made it.
After installing the 1.0.1 version on my Ubuntu, I’ve noticed the installation doesn’t check for pySide what is strange yet, not the point here…
The trick was quite simple, forcing the QtGui and QtCore to be declared from pySide module. This is done inside qt4_compat.py checking for the string inside: rcParams[‘backend.qt4’].
This dictionary I don’t know where It comes from, so, just altering during runtime was enough to make the example “embedding_in_qt4.py” work.
There is any better way to choose between pySide and pyQt? Couldn’t they be separated in to individual backends?
Yet I understand this information is not easily available on the Internet, so i’m trying to share it.
Tiago Ferreira Bonetti