FW: re-draw problem with FigureCanvasQTAgg in backend_qt4agg

Hi Sandro,

I have
$ python -c "import matplotlib as mpl ; print mpl.__version__"
0.98.5.2
Installed and am running PyQt v4.4.3 because I am forced to rest on
Python 2.5

I will try installing 0.98.5.3 and see if that makes a difference.
I have seen the same problem in a Unix installation, I will try and see
which matplotlib version they were running.

Meanwhile can you try re-sizing the dock widgets as fast as possible? If
you use the mouse to re-size them but do it gradually, the problem does
not surface.

Thank you and I will see what happened with the new instalation

Sandro Tosi

···

-----Original Message-----
From: matrixhasu@...149... [mailto:matrixhasu@…149…] On Behalf Of
Sent: Wednesday, June 03, 2009 11:44 AM
To: Alberto Soto
Cc: matplotlib-devel@lists.sourceforge.net
Subject: Re: [matplotlib-devel] re-draw problem with FigureCanvasQTAgg
in backend_qt4agg

Hi Alberto,

On Wed, Jun 3, 2009 at 10:49, Alberto Soto <alberto.soto@...727...> wrote:

Good afternoon,

I am working on a GUI that utilizes the FigureCanvasQTAgg. The GUI

consists

of a Qt main window were the central widget includes a Figure. The

problem

arises when this central widget interacts with re-size events of my

dock

widgets. The Plot is not correctly re-drawn, it 'leaks' into the dock
widgets.

I think a picture would better describe this problem:

Here we see 2 scripts running, the 1st one's dock widgets have been

re-sized

by the user and the plot has 'leaked' into the right side dialog. The

second

picture shows how the dialog normally looks.

I am also attaching a simple script with the GUI that has the problem.

If I move or do anything to re-trigger a paint event the plot is

re-drawn

correctly.

I see no problem here. I'm on a debian sid OS, with

$ python -c "import matplotlib as mpl ; print mpl.__version__"
0.98.5.3

and

$ apt-show-versions python-qt4
python-qt4/testing uptodate 4.4.4-6

what do you have installed?

Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi