Resize error with Qt4 backend

Hi Brian,

I have also some layout problems with the Qt4 backend. The worst one is
a SegFault when adjusting the width.

Brian Zambrano <brianz@...287...> writes:

vbox = QVBoxLayout()
vbox.addWidget(self.canvas)
self.setLayout(vbox)

Could you just try to add a second canvas to the layout?

vbox = QVBoxLayout()
vbox.addWidget(self.canvas1)
vbox.addWidget(self.canvas2)
self.setLayout(vbox)

and then try to adjust the size by moving the separator between the
central and right widget? In my code, I can reproduce a crash here on
Linux. Also, depending on the speed (content) of the canvases, the width
is not always ajusted correctly.

I am still not sure whether this is fault of Qt, PyQt, or matplotlib.

Thanks

Ole

I can’t produce a segfault with the attached script. I have Qt-4.5.2, PyQt-4.5.1, and a checkout of the matplotlib trunk.

Darren

mpl_qt_buggy.py (1.61 KB)

···

On Thu, Jul 2, 2009 at 3:06 AM, Ole Streicher <ole-usenet-spam@…361…> wrote:

Hi Brian,

I have also some layout problems with the Qt4 backend. The worst one is

a SegFault when adjusting the width.

Brian Zambrano <brianz@…287…> writes:

vbox = QVBoxLayout()

vbox.addWidget(self.canvas)

self.setLayout(vbox)

Could you just try to add a second canvas to the layout?

vbox = QVBoxLayout()

vbox.addWidget(self.canvas1)

vbox.addWidget(self.canvas2)

self.setLayout(vbox)

and then try to adjust the size by moving the separator between the

central and right widget? In my code, I can reproduce a crash here on

Linux. Also, depending on the speed (content) of the canvases, the width

is not always ajusted correctly.

I am still not sure whether this is fault of Qt, PyQt, or matplotlib.