|
From: G J. <gle...@gm...> - 2008-04-30 14:25:23
|
Hello, I have decided to switch to the QtAgg backend because the Designer software is very appealing. I succeeded in adding a custom widget representing the FigureCanvasQTAgg, but when I compile the ui file, I see that it tries to instantiate it as FigureCanvasQTAgg(Parent) where Parent is the parent widget, which seems to be the standard format for instantiating widgets. However, FigureCanvasQTAgg expects a figure as an argument. I have seen this tutorial: http://www.scipy.org/Cookbook/Matplotlib/Qt_with_IPython_and_Designer which suggests making a MatplotlibWidget to wrap the Canvas and set everything up including the parent. I have written a version of this for Qt4, but this seems like something that should be included in the Qt4 backends. Any plans on adding this? I'd be happy to contribute. Attached is my initial version. Glenn |