<p dir="ltr">Den 11 maj 2017 5:50 em skrev "Elvis Stansvik" <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>>:<br>
><br>
> Den 11 maj 2017 5:25 em skrev "Marcus D. Hanwell" <<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>>:<br>
> ><br>
> > On Thu, May 11, 2017 at 11:17 AM, Elvis Stansvik<br>
> > <<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
> > > 2016-11-07 19:58 GMT+01:00 Sean McBride <<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>>:<br>
> > >> On Fri, 4 Nov 2016 14:36:56 -0400, Marcus D. Hanwell said:<br>
> > >><br>
> > >>>On Fri, Nov 4, 2016 at 8:28 AM, Michael Jackson<br>
> > >>><<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>> wrote:<br>
> > >>>> I just tried the HiDPI support on VTK 7.1.0-rc2 and I get the usual VTK<br>
> > >>>> rendering canvas that is half the size of the widget that it is embedded<br>
> > >>>> into.<br>
> > >>>><br>
> > >>>> We are using Qt 5.6.2 on macOS 10.10.5. I compiled my original pull request<br>
> > >>>> (way back in Aug 2016) and that patch gives me a full size canvas. But when<br>
> > >>>> compiling the latest VTK 7.1.0-rc2 I get the half size canvas. I thought the<br>
> > >>>> branch was merged on Sept 28 2016 but I guess I got busy and never actually<br>
> > >>>> tested it on a retina screen.<br>
> > >>>><br>
> > >>>> Most likely I am doing something wrong in the initialization in my code but<br>
> > >>>> just in case can anyone else confirm with Qt 5.6.x that they can actually<br>
> > >>>> get a Retina/HiDPI canvas?<br>
> > >>>><br>
> > >>>Bob has a retinal Mac that I can do some testing on, this is likely to<br>
> > >>>end up being after Supercomputing, but I would like to follow up on<br>
> > >>>this. We had it working when you visited, and I am hoping to get this<br>
> > >>>enabled in Tomviz at some point soon. It would be great to hear from<br>
> > >>>Sean and/or David. To the best of my recollection an alternate<br>
> > >>>approach was developed, and that was merged. It had several other<br>
> > >>>changes in addition to what was proposed originally.<br>
> > >><br>
> > >> We merged my PR:<br>
> > >> <<a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/2019">https://gitlab.kitware.com/vtk/vtk/merge_requests/2019</a>><br>
> > >><br>
> > >> and not Mike's:<br>
> > >> <<a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1791">https://gitlab.kitware.com/vtk/vtk/merge_requests/1791</a>><br>
> > >><br>
> > >> IIRC mine was a superset of Mike's, unless we screwed something up somewhere.  I was always of the view that the changes were necessary but not sufficient.<br>
> > >><br>
> > >> I'm swamped this week preparing for the SfN conference, but can look more next week...<br>
> > ><br>
> > > Bumping this old thread since I'm in this boat as well now.<br>
> > ><br>
> > > I've finally gotten around to porting our application to macOS.<br>
> > > Everything went pretty smooth. We're using 7.1.1, and we're using<br>
> > > QVTKWidget (will port to QVTKOpenGLWidget once 8.0.0 is out).<br>
> > ><br>
> > > I am however seeing the problem on a retina screen that VTK render<br>
> > > windows only take up a quarter of their alotted space.<br>
> > ><br>
> > > So my question: Is it possible to make VTK work fine on retina<br>
> > > displays with 7.1.1? If not, is there some patch I could apply? Or<br>
> > > will I have to build from Git (to be 8.0.0)?<br>
> > ><br>
> > So I worked on some pieces of this, but may not know all the moving<br>
> > parts. If you are using Qt 5 and want a retinal display application,<br>
> > then you should be using QVTKOpenGLWidget. If you are using Qt 4 then<br>
> > it will never work properly as Qt 4 lacks the support, or not to the<br>
> > best of my knowledge. We did quite a bit of work, but it focused on<br>
> > the QVTKOpenGLWidget and Qt 5, but you would need master or the 8.0<br>
> > release.<br>
><br>
> Alright, thanks for the info Marcus. I better switch to VTK master and try out the new widget for the macOS build then. Was planning on that anyway soon.</p>
<p dir="ltr">But just so I'm clear, QVTKWidget won't work well, even with master? </p>
<p dir="ltr">><br>
> Do you know if the 8.0.0 branching is on for the week of may 15 still?<br>
><br>
> Elvis<br></p>