CEF and high DPI QT Application.
Posted: Wed Sep 23, 2020 4:31 am
I have created Qt application which uses different CEF process to show some web pages.
In application dialog, CEF provided HWND is drawn.
In High DPI mode, my application is scaled 2X for (150%, 175%, 200%) and 1X for 125%.
What I am expecting is my CEF HWND also scale according to my application.
1> if I enable CefEnableHighDPISupport(), CEF HWND is scaled according to windows DPI setting.
here problem is that for 150% scaling , my application is scaled 2X and CEF HWND is scaled 1.5X. which doesn't fit in whole app window and for 125% scaling CEF HWND is clipped
2> if I pass scale value from y application to CEF process using command line argument "--force-device-scale-factor " , CEF HWND is scaled and drawn properly in application windows.
here problem is that , if I change dpi scale while application is running, CEF HWND is not scaled accordingly. it is drawn at fixed scale.
Is there any way handle this on Cef side?
In application dialog, CEF provided HWND is drawn.
In High DPI mode, my application is scaled 2X for (150%, 175%, 200%) and 1X for 125%.
What I am expecting is my CEF HWND also scale according to my application.
1> if I enable CefEnableHighDPISupport(), CEF HWND is scaled according to windows DPI setting.
here problem is that for 150% scaling , my application is scaled 2X and CEF HWND is scaled 1.5X. which doesn't fit in whole app window and for 125% scaling CEF HWND is clipped
2> if I pass scale value from y application to CEF process using command line argument "--force-device-scale-factor " , CEF HWND is scaled and drawn properly in application windows.
here problem is that , if I change dpi scale while application is running, CEF HWND is not scaled accordingly. it is drawn at fixed scale.
Is there any way handle this on Cef side?