<div dir="ltr">I setup a Qt5 build, and this is indeed a problem.<div><br></div><div>It looks like we'll need to do some more work to get VTK to play nice with Qt5, at least on X11 (possibly other windowing systems as well). The root cause of the multisampling problem is that Qt5 no longer provides things like Q_WS_X11 and QX11Info, and the section of QVTKWidget::SetRenderWindow that initializes the GLX visual is inside a "#ifdef Q_WS_X11" block, and thus never gets called. It appears that all of the visual configuration (double buffering, stencil, MSAA, alpha planes, etc) are currently not being used when build against Qt5 on (at least) X11 as a result.</div><div><br></div><div>For now, the only workaround I see is to stick with Qt4 until this can be addressed. I've filed a bug here:</div><div><br></div><div><a href="http://www.vtk.org/Bug/view.php?id=15469">http://www.vtk.org/Bug/view.php?id=15469</a><br></div><div><br></div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 12, 2015 at 8:32 AM, David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@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 dir="ltr"><div class="gmail_extra">Bumping -- can someone with a Qt5 build around do a quick test to see if multisampling works in a QVTKWidget? Has anyone been working on Qt5 support that might have an idea what's happening?</div><div><div class="h5"><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">On Thu, May 7, 2015 at 9:17 AM, David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@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 dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, May 7, 2015 at 8:31 AM, Christoph Kolb <span dir="ltr"><<a href="mailto:c.kolb@dkfz-heidelberg.de" target="_blank">c.kolb@dkfz-heidelberg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>your fix works for me in the RGrid example and also in SimpleView
      with Qt4.<br>
      But not in Qt5.<br>
      If you run the SimpleView example with Qt5, multisampling is off
      again which is inexplicable to me because in my understanding the
      QVTKWidget was simply painting the GL buffer rendered by a
      vtkRenderWindow which should already be antialiased... Is that
      wrong?</div></div></blockquote><div><br></div><div>Hmm, I'm not super familiar with the Qt layer in VTK. Perhaps someone else on the list might know?</div><div><br></div><div>Looking at the QVTKWidget implementation, I don't see why the Qt version would make a difference regarding MSAA. Let's see if someone on the list has any ideas, and I'll ask around to see what I can find out.</div><div><br></div><div>Dave</div></div></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>