<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Den tors 23 aug. 2018 11:09Mathieu Westphal <<a href="mailto:mathieu.westphal@kitware.com">mathieu.westphal@kitware.com</a>> skrev:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello list,<div><br></div><div>If you are working on a VTK/Qt application this information should interest you.</div><div>Sometime ago, a new QVTKOpenGLWidget implementation has been added to VTK, while the old one has been moved to QVTKOpenGLSimpleWidget.<br></div><div>The last fixes for this change have just been merged, so make sure to use VTK master to test this.</div><div><br></div><div><b>1. Why is there a new widget and what does it do ?</b></div><div>We have been having some issues reported for the old widget, and the old widget could not support quad buffer stereo rendering by design.</div><div>Has it is a needed feature in ParaView, a reimplementation was necessary. This new widget fix most of the reported issues with the old widget as well as adding stereo support.</div><div><br></div><div><b>2. Why keeping the old widget around then ?</b></div><div>Due to Qt limitations, this new implementation does not support very well being a native widget.</div><div>But native widget are sometimes mandatory, for example within QScrollArea and QMDIArea, so the </div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Do you know what other containers apart from QScrollArea will require native widget? Will QTabWidget?</div><div dir="auto"><br></div><div dir="auto">Asking because we are planning to possibly put one of our VTK views in a tab widget, but would really like to benefit from some of the improvements in the new VTK widget (respect for fractional device pixel ratio mostly).</div><div dir="auto"><br></div><div dir="auto">If tab widget will require native, then I should really brush up an old MR of mine that fixes <span style="font-family:sans-serif">fractional device pixel ratio in the "old" native widget. I should do this anyway of course, but now I've heard that 8.2 might be around the corner, making it more urgent to do that asap.</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Elvis</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>QVTKOpenGLSimpleWidget should be used when in needs of VTK rendering in the contact of Qt native widget.</div><div><br></div><div>Also it allows users to switch back to the old widget if necessary.</div><div><br></div><div><b>3. I'm not sure what native widgets are, what should I do in my application ?</b></div><div><b><br></b></div><div>Here are the different situation :</div><div><ol><li>Your Qt application only uses a central QVTKOpenGLWidget for rendering:<br>-> Nothing to do, just build with last master and make sure all is working well</li><li>Your Qt application only uses QVTKOpenGLWidget within QScrollArea or QMDIArea, or manually set widgets to be native and you are not interested by stereo rendering.<br> -> Change all your QVTKOpenGLWidget to QVTKOpenGLSimpleWidget and you are good to go</li><li>Your application uses a non-native QVTKOpenGLWidget for rendering as well as native QVTKOpenGLWidget for rendering (eg: ParaView, with the central rendering widget and the color map editor rendering widget in scroll areas) : <br> -> Use QVTKOpenGLWidget for non-native widgets and QVTKOpenGLSimpleWidget for native ones. The later will never support stereo.</li></ol><div><br></div></div><div><b>4. I followed your recommendation but I see some strange stuff/bugs/rendering issues</b></div><div>Even if this new class has been tested extensively and will be used in the next ParaView release, It may still contains some issues. Feel free to discuss them in this mailing list or on our <a href="https://gitlab.kitware.com/vtk/vtk" target="_blank" rel="noreferrer">gitlab</a>.</div><div><br></div><div>Best regards,</div><div><br></div><div><div><div class="m_8192973441203160457gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
</div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer" 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" rel="noreferrer noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div></div></div>