<div dir="ltr"><div><div>FTI there is currently a QVTKOpenGLWidget2 in developement : <a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/3745">https://gitlab.kitware.com/vtk/vtk/merge_requests/3745</a><br></div>It may fix some of your issues. It will replace QVTKOpenGLWidget at some point.<br><br></div>Best,<br></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 Mon, Mar 5, 2018 at 2:03 PM, Michael Jackson <span dir="ltr"><<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="#0563C1" vlink="#954F72" lang="EN-US"><div class="m_-7206304878104144393WordSection1"><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Fira Sans",sans-serif">And also the old QVTKWidget will not work properly with Retina screens on macOS ( not sure about other operating systems). The problem you describe sounds like a retina issue we had before all the retina fixes were put into VTK 8.1<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Fira Sans",sans-serif"><u></u> <u></u></span></p><div><p class="MsoNormal"><span style="color:black">--<u></u><u></u></span></p><p class="MsoNormal"><span style="color:black">Michael Jackson | Owner, President<u></u><u></u></span></p><p class="MsoNormal"><span style="color:black"> BlueQuartz Software</span><u></u><u></u></p><p class="MsoNormal"><span style="color:black">[e] <a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a><u></u><u></u></span></p></div><p class="MsoNormal"><span style="color:black">[w] <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a></span><span style="font-size:12.0pt;font-family:"Fira Sans",sans-serif"><u></u><u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">vtkusers <<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>> on behalf of Zoltan Kovacs <<a href="mailto:Zoltan.Kovacs@esi-group.com" target="_blank">Zoltan.Kovacs@esi-group.com</a>><br><b>Date: </b>Monday, March 5, 2018 at 3:52 AM<br><b>To: </b>"'Andrew J. Buckler (Elucid Bioimaging)'" <<a href="mailto:andrew.buckler@elucidbio.com" target="_blank">andrew.buckler@elucidbio.com</a>><wbr>, "'<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>Subject: </b>Re: [vtkusers] VTK 8.0.1 with Qt 5.10.1<u></u><u></u></span></p></div><span class=""><div><p class="MsoNormal" style="margin-left:.5in"><u></u> <u></u></p></div><p class="MsoNormal" style="margin-left:.5in"><a name="m_-7206304878104144393__MailOriginalBody">Hi,<u></u><u></u></a></p><p class="MsoNormal" style="margin-left:.5in"><span> <u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span>Why don’t you use QVTKOpenGLWidget instead of QVTKWidget? The latter one is obsolete and its application is already deprecated. I am not sure if it is correctly supported by the VTK development now. QVTKOpenGLWidget takes over the window management and OpenGL context creation, which is a different solution compared with QVTKWidget.<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span> <u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span>Regards,<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span>Zoltan<u></u><u></u></span></p><p class="MsoNormal" style="margin-left:.5in"><span> <u></u><u></u></span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal" style="margin-left:.5in"><span><b>From:</b> vtkusers <<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>> <b>On Behalf Of </b>Andrew J. Buckler (Elucid Bioimaging)<br><b>Sent:</b> Donnerstag, 1. März 2018 23:27<br><b>To:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br><b>Subject:</b> [vtkusers] VTK 8.0.1 with Qt 5.10.1<u></u><u></u></span></p></div></div><p class="MsoNormal" style="margin-left:.5in"><span> <u></u><u></u></span></p></span><div id="m_-7206304878104144393divtagdefaultwrapper"><span class=""><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black">Hello,</span><u></u><u></u></span></p><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black">I have a successfully built and running application using VTK (multiple versions, including 8 and earlier) running with Qt 5.5.1. It uses QVTKWidget extensively. At this time I am working to upgrade to Qt 5.10.1, specifically pairing it with VTK 8.0.1.</span><u></u><u></u></span></p><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black"> </span><u></u><u></u></span></p><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black">Having successfully built Qt from source, I built VTK as follows:</span><u></u><u></u></span></p><div><p class="MsoNormal" style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black">tar -xvzf VTK-8.0.1.tar.gz<br>mkdir VTK-8.0.1-build<br>cd VTK-8.0.1-build<br>cmake -DCMAKE_CXX_FLAGS=-std=c++11 -DBUILD_SHARED_LIBS:BOOL=OFF -DQT_QMAKE_EXECUTABLE:PATH=/<wbr>usr/local/Qt-5.10.1/bin/qmake -DCMAKE_PREFIX_PATH=/usr/<wbr>local/Qt-5.10.1/ -DVTK_Group_Qt:BOOL=ON -DVTK_Group_Qt=1 -DVTK_QT_VERSION=5 ../VTK-8.0.1<br>make -j4<br>make install</span><u></u><u></u></span></p></div><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black"> </span><u></u><u></u></span></p><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black">My application compiles and links without error on macOS 10.13, but the QVTKWidgets have erratic and inconsistent behavior. Specifically:</span><u></u><u></u></span></p></span><p class="MsoNormal" style="margin-left:1.0in"><span><u></u><span style="color:black"><span>1.<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="font-size:12.0pt;color:black">Two of them work perfectly well. </span></span><span><span style="color:black"><u></u><u></u></span></span></p><p class="MsoNormal" style="margin-left:1.0in"><span><u></u><span style="color:black"><span>2.<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="font-size:12.0pt;color:black">Some of them do not work at all, that is, have either a blank content or seem to have a double-buffering error where old content from a portion of the screen where the widget is supposed to be displays previously displayed content at that location, rather than the correct content.</span></span><span><span style="color:black"><u></u><u></u></span></span></p><p class="MsoNormal" style="margin-left:1.0in"><span><u></u><span style="color:black"><span>3.<span style="font:7.0pt "Times New Roman""> </span></span></span><u></u><span style="font-size:12.0pt;color:black">Some of them show the correct content for a second or two and then revert to blank.</span></span><span><span style="color:black"><u></u><u></u></span></span></p><span class=""><p class="MsoNormal" style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black"> </span><u></u><u></u></span></p><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black">It may be that the VTK build needs to be done with different flags, or some known incompatibility exists, or anything else. If anyone has run into this your help would be appreciated, or short of seeing the problem specifically any suggested debugging strategies would be great.</span><u></u><u></u></span></p><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black"> </span><u></u><u></u></span></p><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black">With thanks,</span><u></u><u></u></span></p><p style="margin-left:.5in"><span><span style="font-size:12.0pt;color:black">Andy</span><u></u><u></u></span></p></span></div><p class="MsoNormal" style="margin-left:.5in"><span>______________________________<wbr>_________________ Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a> 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_<wbr>FAQ</a> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a> Follow this link to subscribe/unsubscribe: <a href="https://vtk.org/mailman/listinfo/vtkusers" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a> </span><u></u><u></u></p></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://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>