<div dir="ltr">Hi Leonid, Hi Andras,<div><br></div><div>QVTKWidget and QVTKWidget2 are deprecated and should not be used, at least not if you have any problem with them in your application.</div><div><br></div><div>VTK < 9, QVTKOpenGLWidget should be used</div><div>VTK >= 9, QVTKOpenGLWidget has been renamed QVTKOpenGLNativeWidget (so it is not recently added) and should be used when needing a native widget</div><div>a new QVTKOpenGLWidget has been added and should be used for all other usecases.</div><div><br></div><div>for QVTKOpenGL*Widget, you can find example in VTK/GUISupport/Qt/Testing/Cxx</div><div><br></div><div>Best regards,</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>For reference, see the mail sent on 2018 Aug 23, "The new QVTKOpenGLWidget"</i></div><div><i><br></i></div><div><i>Hello list,</i></div><div><div><i><br></i></div></div><div><div><i>If you are working on a VTK/Qt application this information should interest you.</i></div></div><div><div><i>Sometime ago, a new<span> </span><span class="gmail-il">QVTKOpenGLWidget</span><span> </span>implementation has been added to VTK, while the old one has been moved to QVTKOpenGLSimpleWidget.</i></div></div><div><div><i>The last fixes for this change have just been merged, so make sure to use VTK master to test this.</i></div></div><div><div><i><br></i></div></div><div><div><b><i>1. Why is there a new widget and what does it do ?</i></b></div></div><div><div><i>We have been having some issues reported for the old widget, and the old widget could not support quad buffer stereo rendering by design.</i></div></div><div><div><i>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.</i></div></div><div><div><i><br></i></div></div><div><div><b><i>2. Why keeping the old widget around then ?</i></b></div></div><div><div><i>Due to Qt limitations, this new implementation does not support very well being a native widget.</i></div></div><div><div><i>But native widget are sometimes mandatory, for example within QScrollArea and QMDIArea, so the QVTKOpenGLSimpleWidget should be used when in needs of VTK rendering in the contact of Qt native widget.</i></div></div><div><div><i><br></i></div></div><div><div><i>Also it allows users to switch back to the old widget if necessary.</i></div></div><div><div><i><br></i></div></div><div><div><b><i>3. I'm not sure what native widgets are, what should I do in my application ?</i></b></div></div><div><div><b><i><br></i></b></div></div><div><div><i>Here are the different situation :</i></div></div></blockquote><div><div><ol><ol><li style="margin-left:15px"><i>Your Qt application only uses a central<span> </span><span class="gmail-il">QVTKOpenGLWidget</span><span> </span>for rendering:</i></li><li style="margin-left:15px"><i>-> Nothing to do, just build with last master and make sure all is working well</i></li><li style="margin-left:15px"><i>Your Qt application only uses<span> </span><span class="gmail-il">QVTKOpenGLWidget</span><span> </span>within QScrollArea or QMDIArea, or manually set widgets to be native and you are not interested by stereo rendering.</i></li><li style="margin-left:15px"><i> -> Change all your<span> </span><span class="gmail-il">QVTKOpenGLWidget</span><span> </span>to QVTKOpenGLSimpleWidget and you are good to go</i></li><li style="margin-left:15px"><i>Your application uses a non-native<span> </span><span class="gmail-il">QVTKOpenGLWidget</span><span> </span>for rendering as well as native<span> </span><span class="gmail-il">QVTKOpenGLWidget</span><span> </span>for rendering (eg: ParaView, with the central rendering widget and the color map editor rendering widget in scroll areas) : </i></li><li style="margin-left:15px"><i> -> Use<span> </span><span class="gmail-il">QVTKOpenGLWidget</span><span> </span>for non-native widgets and QVTKOpenGLSimpleWidget for native ones. The later will never support stereo.</i></li></ol></ol></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div><i><br></i></div></div></div><div><div><b><i>4. I followed your recommendation but I see some strange stuff/bugs/rendering issues</i></b></div></div><div><div><i>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<span> </span><a href="https://gitlab.kitware.com/vtk/vtk" target="_blank" style="color:rgb(17,85,204)">gitlab</a>.</i></div></div><div><div><i><br></i></div></div><div><div><i>Best regards,</i></div></div><div><div><i><br></i></div></div><div><div><div><div class="gmail-m_6620322686891553140gmail_signature"><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><i>Mathieu Westphal</i></span></div></div></div></div></div></blockquote><div><div><div class="gmail-m_6620322686891553140gmail_signature"><div dir="ltr"><div class="gmail-yj6qo" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"></div><br class="gmail-Apple-interchange-newline"></div></div></div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Tue, Sep 18, 2018 at 7:27 AM, Leonid Dulman via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@public.kitware.com" target="_blank">vtkusers@public.kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8330"><span>Hi to all</span></div><div id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8330" dir="ltr"><span id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8356">I have problems to use </span><span style="font-family:Arial;font-size:small" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8377">QVTKOpenglWidget vs </span><span style="font-family:Arial;font-size:small" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8402">QVTKWidget2</span></div><div id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8330" dir="ltr"><span style="font-family:Arial;font-size:small" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8473">If somebody have a simple example how to use </span><span style="font-family:Arial;font-size:small" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8499">QVTKOpenglWidget instead of </span><span style="font-family:Arial;font-size:small" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8524">QVTKWidget2</span></div><div id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8330" dir="ltr"><span style="font-family:Arial;font-size:small">Thanks, Leonid</span></div><div class="m_-2619402163697239793qtdSeparateBR" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8331"><br><br></div><div class="m_-2619402163697239793yahoo_quoted" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8362" style="display:block"> <div style="font-family:Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8361"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8360"> <div dir="ltr" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8359"> <font size="2" face="Arial" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8358"> <hr size="1" id="m_-2619402163697239793yui_3_16_0_ym19_1_1537248140221_8357"> <b><span style="font-weight:bold">From:</span></b> Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>><br> <b><span style="font-weight:bold">To:</span></b> minjun <<a href="mailto:mey1k@naver.com" target="_blank">mey1k@naver.com</a>>; "<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>" <<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>> <br> <b><span style="font-weight:bold">Sent:</span></b> Tuesday, September 18, 2018 5:43 AM<br> <b><span style="font-weight:bold">Subject:</span></b> Re: [vtkusers] QVTKWidget vs QVTKOpenglWidget vs QVTKWidget2<br> </font> </div> <div class="m_-2619402163697239793y_msg_container"><br><div dir="ltr"><span class="">You may try the recently added QVTKOpenGLNativeWidget instead.<br clear="none"><br clear="none"><a shape="rect" href="https://www.vtk.org/doc/nightly/html/classQVTKOpenGLNativeWidget.html" target="_blank">https://www.vtk.org/doc/<wbr>nightly/html/<wbr>classQVTKOpenGLNativeWidget.<wbr>html</a><br clear="none"><br clear="none">Let us know if it works for this use case.<br clear="none"><br clear="none">Andras<br clear="none"><br clear="none">-----Original Message-----<br clear="none">From: vtkusers <<a shape="rect" href="mailto:vtkusers-bounces@public.kitware.com" target="_blank">vtkusers-bounces@public.<wbr>kitware.com</a>> On Behalf Of minjun<br clear="none">Sent: Monday, September 17, 2018 8:55 PM<br clear="none">To: <a shape="rect" href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br clear="none">Subject: [vtkusers] QVTKWidget vs QVTKOpenglWidget vs QVTKWidget2<br clear="none"><br clear="none">I want to have qvtkwidget as background and place a generic QWidget on top of it.<br clear="none"><br clear="none">However, when I place a generic qwidget, the widget looks like to stop or not work properly.<br clear="none"><br clear="none">I came to know through many searches that this is a opengl context problem.<br clear="none"><br clear="none">So some people advice me to use QWidget2 or QVTKOpenglWidget to solve this problem.<br clear="none"><br clear="none">Is this the right way?<br clear="none"><br clear="none">If you have any experience like this, I would like to get some advice. Thank you.<br clear="none"><br clear="none"><br clear="none"><br clear="none">--<br clear="none"></span>Sent from: <a shape="rect" href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7C997ba21511cb4be5f0f008d61d015eb6%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636728289083872456&sdata=6B8JqvIzktn4XNu3v18rNcJyhxhZDYy26Gwof34s4xM%3D&reserved=0" target="_blank">https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fvtk.1045678.n5.<wbr>nabble.com%2FVTK-Users-<wbr>f1224199.html&data=02%7C01%<wbr>7Classo%40queensu.ca%<wbr>7C997ba21511cb4be5f0f008d61d01<wbr>5eb6%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636728289083872456&sdata=<wbr>6B8JqvIzktn4XNu3v18rNcJyhxhZDY<wbr>y26Gwof34s4xM%3D&reserved=0</a><br clear="none">______________________________<wbr>_________________<br clear="none">Powered by <a shape="rect" href="https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C997ba21511cb4be5f0f008d61d015eb6%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636728289083872456&sdata=AkgZvzAL7n8armZ8649xepsg%2Buj%2BMil3frU6J3S9bRs%3D&reserved=0" target="_blank">https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>www.kitware.com&data=02%7C01%<wbr>7Classo%40queensu.ca%<wbr>7C997ba21511cb4be5f0f008d61d01<wbr>5eb6%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636728289083872456&sdata=<wbr>AkgZvzAL7n8armZ8649xepsg%2Buj%<wbr>2BMil3frU6J3S9bRs%3D&reserved=<wbr>0</a><br clear="none"><br clear="none">Visit other Kitware open-source projects at <a shape="rect" href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C997ba21511cb4be5f0f008d61d015eb6%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636728289083872456&sdata=W2ZVY9Q66kNWrbfoaonUGqUcV3sOkJJ3SkSpt6S%2FkIQ%3D&reserved=0" target="_blank">https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fwww.kitware.com%<wbr>2Fopensource%2Fopensource.<wbr>html&data=02%7C01%7Classo%<wbr>40queensu.ca%<wbr>7C997ba21511cb4be5f0f008d61d01<wbr>5eb6%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636728289083872456&sdata=<wbr>W2ZVY9Q66kNWrbfoaonUGqUcV3sOkJ<wbr>J3SkSpt6S%2FkIQ%3D&reserved=0</a><br clear="none"><br clear="none">Please keep messages on-topic and check the VTK FAQ at: <a shape="rect" href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C997ba21511cb4be5f0f008d61d015eb6%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636728289083882461&sdata=5ykO5UWnOawjKVcuB4Y0gj4f1G1oCtrUNXI%2FWfTyP8U%3D&reserved=0" target="_blank">https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fwww.vtk.org%<wbr>2FWiki%2FVTK_FAQ&data=02%7C01%<wbr>7Classo%40queensu.ca%<wbr>7C997ba21511cb4be5f0f008d61d01<wbr>5eb6%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636728289083882461&sdata=<wbr>5ykO5UWnOawjKVcuB4Y0gj4f1G1oCt<wbr>rUNXI%2FWfTyP8U%3D&reserved=0</a><br clear="none"><br clear="none">Search the list archives at: <a shape="rect" href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C997ba21511cb4be5f0f008d61d015eb6%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636728289083882461&sdata=Fa0SmWYAebDG5IDvFcWpXrbRD3vFBysxPUJ2nMuh9Xs%3D&reserved=0" target="_blank">https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fmarkmail.org%<wbr>2Fsearch%2F%3Fq%3Dvtkusers&<wbr>data=02%7C01%7Classo%<wbr>40queensu.ca%<wbr>7C997ba21511cb4be5f0f008d61d01<wbr>5eb6%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636728289083882461&sdata=<wbr>Fa0SmWYAebDG5IDvFcWpXrbRD3vFBy<wbr>sxPUJ2nMuh9Xs%3D&reserved=0</a><span class=""><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none"></span><a shape="rect" href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C997ba21511cb4be5f0f008d61d015eb6%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636728289083882461&sdata=fY1lu2ueycUk5r1TNSq%2FP0W733wkfT4vKf99LPe4KzY%3D&reserved=0" target="_blank">https://na01.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Fpublic.kitware.<wbr>com%2Fmailman%2Flistinfo%<wbr>2Fvtkusers&data=02%7C01%<wbr>7Classo%40queensu.ca%<wbr>7C997ba21511cb4be5f0f008d61d01<wbr>5eb6%<wbr>7Cd61ecb3b38b142d582c4efb2838b<wbr>925c%7C1%7C0%<wbr>7C636728289083882461&sdata=<wbr>fY1lu2ueycUk5r1TNSq%<wbr>2FP0W733wkfT4vKf99LPe4KzY%3D&<wbr>reserved=0</a><span class=""><div class="m_-2619402163697239793yqt4561976535" id="m_-2619402163697239793yqtfd68583"><br clear="none">______________________________<wbr>_________________<br clear="none">Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br clear="none"><br clear="none">Visit other Kitware open-source projects at <a shape="rect" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br clear="none"><br clear="none">Please keep messages on-topic and check the VTK FAQ at: <a shape="rect" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br clear="none"><br clear="none">Search the list archives at: <a shape="rect" href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none"><a shape="rect" href="https://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br clear="none"></div></span></div><br><br></div> </div> </div> </div></div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="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" target="_blank">http://www.kitware.com/<wbr>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" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>