PDA

View Full Version : repaint issues with QWinHost in a QMdiArea in TabbedView mode



tangens
18th April 2011, 17:11
I'm currently integrating some WinForms control in our Qt code by using the QWinHost solution.

It works pretty ok, but I'm now running into repaint issues when the QMdiArea is put into TabbedView mode.

Basically what happens is that each time when I make some mdichild active, I temporarily see the WinForms control painted in restored format for a split second.

I have been looking into the QMdiArea code and it looks like it does some deactivation of all other widgets (=different than the one that has to become active) and calls showNormal on them so they become restored.
It is exactly that showNormal call that is causing the WinForms control to be drawn on screen.
I think for real Qt Widgets the repaint is being taken care of, but of course not for my WinForms control.

Did anybody ran into the same/related problem and got a fix some how?

Thanks!