<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hey everyone,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m currently porting a Linux/Windows Software to OSX 10.11, using C++, Qt5.6, VTK 7.0 and compiling using XCode 7.2 . Also I built the project using CMake.
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In one of the windows in an MDIArea I’m seeing a strange kind of behavior when the window is moved around :<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="https://gfycat.com/DeficientHatefulGeese">https://gfycat.com/DeficientHatefulGeese</a>
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To me that looks like a problem with refreshing/updating maybe?
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The structure of the widget is the following: <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">MainWidget(The one being moved around in the gif):<o:p></o:p></p>
<p class="MsoNormal">  class ImageViewerWidget: public QMainWindow, public AbstractWidget
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  ImageViewerWidgets contains a QStackedWidget where the separate Widgets are added to.  <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The problematic widget containing vtk : <o:p></o:p></p>
<p class="MsoNormal">  class ImageVtkHaloWidget : public QWidget <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This Widget is setup like this:<o:p></o:p></p>
<p class="MsoNormal">  QVTKWidget *_vtk = new QVTKWidget(this, QFlag(0)); <o:p></o:p></p>
<p class="MsoNormal">  QVBoxLayout *layout = new QVBoxLayout;<o:p></o:p></p>
<p class="MsoNormal">  layout->addWidget(_vtk);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Till that point everything works fine, but if a renderer is set the weird behavior of the gif can be seen:
<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  <span lang="DE">vtkRenderer* _renderer = vtkRenderer::New();<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE">  _vtk->GetRenderWindow()->AddRenderer(_renderer);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE"><o:p> </o:p></span></p>
<p class="MsoNormal">It’s not a problem with rendering in general as the rendering of the stuff inside the viewer works fine if the window is held still, just the moving around oft he widget results in weird behavior of the whole Widget.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I couldn’t find anything about the reasons for these problems, so I figured I’d turn to people here for help. Has anyone ever seen something like this?  If more information about my system or more code is needed, I’ll gladly provide it
 of course.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Cheers,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Lukas<o:p></o:p></p>
</div>
</body>
</html>