<div dir="ltr">Hello,<div><br></div><div style>I used the patch mentioned above and it works as expected on Windows 7, but there's still some issues if you are on a Windows XP system. If you apply this patch and use a QVTKWidget on a Windows XP system, there will appear white blinking areas when you pass over any application window or dialog (not necessarily a Qt one or from the same application, it occurs with any window), which makes it really annoying, specially if you are using diagnostic monochrome displays.</div>
<div style><br></div><div style>If the problem only affects Windows 7 it should be only applied when we are on a Windows 7 system, so I made a little modification of this patch to accomplish this, so the InvalidateRect() call is only made on Windows 7 systems. I've attached a patch with this modification which I tested on Windows 7 with Aero om/off and on Windows XP as well.</div>
<div style><br></div><div style>If any of you find this could be done in a better fashion, please share it so the issue will be fixed for any system with no collateral effects.</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Fri, Jun 1, 2012 at 10:23 PM, Clinton Stimpson <span dir="ltr"><<a href="mailto:clinton@elemtech.com" target="_blank">clinton@elemtech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Here's a better fix, if you want to apply it to your local build.<br>
<a href="http://review.source.kitware.com/#/c/6051/" target="_blank">http://review.source.kitware.com/#/c/6051/</a><br>
<br>
Clint<br>
<div class="HOEnZb"><div class="h5"><br>
On Wednesday, May 02, 2012 06:35:46 PM Alex Malyushytskyy wrote:<br>
> Clint,<br>
><br>
> You actually helped me at least to find a temporary workaround.<br>
><br>
> I removed Qt::MSWindowsOwnDC flag and problem seems fixed and there is<br>
> no visually other problem occurred during quick testing.<br>
><br>
> It still seems a bug in QT ( such change supposed to affect ONLY top<br>
> level widgets ).<br>
> and in my application QVTKWidget is not top level.<br>
> But since it fixed an issue, I will keep it until it lasts.<br>
><br>
> It might not work with QT 5.0, but due to new grapics implementation I<br>
> expect more problems during transition anyway.<br>
><br>
> Thanks and regards,<br>
> Alex<br>
><br>
> > On Wed, May 2, 2012 at 5:20 PM, Clinton Stimpson <<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>><br>
wrote:<br>
> >> It was "fixed" then reverted because the fix was incorrect.<br>
> >><br>
> >> I've narrowed the problem down to a change of behavior in the Qt<br>
> >> library, and reported it.<br>
> >> <a href="https://bugreports.qt-project.org/browse/QTBUG-23425" target="_blank">https://bugreports.qt-project.org/browse/QTBUG-23425</a><br>
> >><br>
> >> But I've not had much time to look further into it.<br>
> >> I would suggest working with the Qt developers to get this fixed. If<br>
> >> you can help with that, that would be great. I think part of the<br>
> >> problem is their QtGui library has code to make a QGLWidget work, but<br>
> >> its difficult to turn the same code on for any other OpenGL based<br>
> >> QWidget that doesn't derive from QGLWidget.<br>
> >><br>
> >> If you haven't voted for it, please do, so other Qt developers will<br>
> >> notice.<br>
> >><br>
> >> Clint<br>
> >><br>
> >> On May 2, 2012, at 5:56 PM, Alex Malyushytskyy wrote:<br>
> >>> Problem on stable release of vtk 5.8.0<br>
> >>><br>
> >>> My application displays splash screen while model is drawn.<br>
> >>> When splash screen is gone and user starts interaction with model,<br>
> >>> only part of the QVTKWidget is displaying correct picture,<br>
> >>> most area which was not covered by splash screen remains unchanged<br>
> >>> (has whatever it displayed before interaction started).<br>
> >>> If QVTKWidget is minimized/maximized it fixes the problem.<br>
> >>><br>
> >>> If AERO is on everything works as expected.<br>
> >>> vtk version 4.* did not have such problem.<br>
> >>><br>
> >>> It seems any drawing which happens when QVTKWidget widget is<br>
> >>> covered(not only to the case of splashscreen)<br>
> >>> leeds to such nasty behaviour.<br>
> >>><br>
> >>> This makes vtk unusable on win 7 since I can't inforce user to have<br>
> >>> AERO on, not even counting that some computers might not be able to<br>
> >>> support it physically.<br>
> >>><br>
> >>> It was an old conversation about related topic at:<br>
> >>> <a href="http://vtk.1045678.n5.nabble.com/Problem-with-QVTKWidget-not-expandi" target="_blank">http://vtk.1045678.n5.nabble.com/Problem-with-QVTKWidget-not-expandi</a><br>
> >>> ng-in-win7-td4533383.html<br>
> >>><br>
> >>> Even though it was stated that problem should be fixed in 5.8., it<br>
> >>> still remains.<br>
> >>><br>
> >>> Could anybody point which changes should be made to fix a problem<br>
> >>> and<br>
> >>> is there a way to push patch that problem finally is fixed in an<br>
> >>> official version?<br>
> >>><br>
> >>> Regards,<br>
> >>><br>
> >>> Alex<br>
> >>> _______________________________________________<br>
> >>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> >>><br>
> >>> Visit other Kitware open-source projects at<br>
> >>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> >>><br>
> >>> Please keep messages on-topic and check the VTK FAQ at:<br>
> >>> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
> >>><br>
> >>> Follow this link to subscribe/unsubscribe:<br>
> >>> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Clinton Stimpson<br>
Elemental Technologies, Inc<br>
Computational Simulation Software, LLC<br>
<a href="http://www.csimsoft.com" target="_blank">www.csimsoft.com</a><br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jesús Spínola
</div>