[vtkusers] DPI scaling in QVTKWidget

Elvis Stansvik elvis.stansvik at orexplore.com
Tue Oct 2 05:19:48 EDT 2018


Den tis 2 okt. 2018 kl 09:30 skrev Mathieu Westphal
<mathieu.westphal at kitware.com>:
>
> Hi,
>
> QVTKOpenGLWidget do support HighDpi.

Just a small warning about QVTKOpenGLNativeWidget (the one you need to
use if you require a native widget): It will not properly support
fractional device pixel ratios (e.g. 150% or 250%), only integer ones
(100%, 200%, ...).

I have an old MR here to fix this:
https://gitlab.kitware.com/vtk/vtk/merge_requests/3973 . It's been on
my TODO to update this MR after the new QVTKOpenGLWidget was merged
and the old one was renamed to QVTKOpenGLNativeWidget, but work has
just kept me so busy that I haven't found time for it.

Elvis

>
> Best,
>
> Mathieu Westphal
>
>
> On Tue, Oct 2, 2018 at 3:09 AM Tharun <tharun160190 at gmail.com> wrote:
>>
>> Thank you for the reply. May I know if using those widgets solve the problem?
>>
>>
>>
>> --
>> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> https://public.kitware.com/mailman/listinfo/vtkusers
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtkusers


More information about the vtkusers mailing list