DPI scaling in QVTKWidget

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

DPI scaling in QVTKWidget

Tharun
        We are building an application based on QT using QVTKWidget.

QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); enables automatic
scaling of application except the widget part.

Can anybody help me with 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
Reply | Threaded
Open this post in threaded view
|

Re: DPI scaling in QVTKWidget

Mathieu Westphal
Hi,

You may want to use QVTKOpenGLWidget or QVTKOpenGLNativeWidget as QVTKWidget is now deprecated.

Best,

Mathieu Westphal


On Mon, Oct 1, 2018 at 11:53 AM Tharun <[hidden email]> wrote:
        We are building an application based on QT using QVTKWidget.

QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); enables automatic
scaling of application except the widget part.

Can anybody help me with 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
Reply | Threaded
Open this post in threaded view
|

Re: DPI scaling in QVTKWidget

Tharun
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
Reply | Threaded
Open this post in threaded view
|

Re: DPI scaling in QVTKWidget

Mathieu Westphal
Hi,

QVTKOpenGLWidget do support HighDpi.

Best,

Mathieu Westphal


On Tue, Oct 2, 2018 at 3:09 AM Tharun <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|

Re: DPI scaling in QVTKWidget

Elvis Stansvik
Den tis 2 okt. 2018 kl 09:30 skrev Mathieu Westphal
<[hidden email]>:
>
> 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 <[hidden email]> 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
_______________________________________________
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