[PyQt] Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

Lukas Hetzenecker LuHe at gmx.at
Sun Jul 19 11:58:53 BST 2009


Hello,

I've tried to resize the QTabWidget, I've searched for examples on the 
internet, added a QTabWidget and used this as the Mainwindows central widget - 
but exactly the same happened.

It works if I replace the FigureCanvas with a Qt Widget - for example a text 
edit or a QWebView.

Am Sonntag 19 Juli 2009 11:54:12 schrieb projetmbc:
> Lukas Hetzenecker a écrit :
> > I tried to embed a Matplotlib FigureCanvas into a QTabWidget.
> > But at the first start of my script - the main.py in the attatched
> > example - the widget in the Tab is incorrectly sized.
> > If I embed the FigureCanvas in a QTabWidget the widget is to big, but if
> > I put it in a QWidget it is shown correctly.
>
> I'm not sure that is a pure MatPlotLib issue. Have you try with a big
> standard widget instead of the FigureCanvas ?
>
> Christophe




More information about the PyQt mailing list