<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hello,</p>
<p style="margin-top:0;margin-bottom:0">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.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Having successfully built Qt from source, I built VTK as follows:</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>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=/usr/local/Qt-5.10.1/bin/qmake -DCMAKE_PREFIX_PATH=/usr/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</div>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">My application compiles and links without error on macOS 10.13, but the QVTKWidgets have erratic and inconsistent behavior. Specifically:</p>
<ol style="margin-bottom: 0px; margin-top: 0px;">
<li>Two of them work perfectly well. <br>
</li><li>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.</li><li>Some of them show the correct content for a second or two and then revert to blank.</li></ol>
<br>
<p style="margin-top:0;margin-bottom:0">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.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">With thanks,</p>
<p style="margin-top:0;margin-bottom:0">Andy<br>
</p>
</div>
</body>
</html>