How to modify Qt variable (QKmsOutput.mode) from application level?
-
Hi*
I'm working on Qt eglfs drm/kms capability to video mode refresh rate changing from Qt application.
I already prepare Qt code changes in: https://github.com/qt/qtbase/blob/40143c189b7c1bf3c2058b77d00ea5c4e3be8b28/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms/qeglfskmsgbmscreen.cpp#L220 realising mode refresh rate switching in Qt internally.
My Qt code expects - for mode refresh change - that Qt app sets: https://github.com/qt/qtbase/blob/40143c189b7c1bf3c2058b77d00ea5c4e3be8b28/src/platformsupport/kmsconvenience/qkmsdevice.cpp#L435 variable to new mode_index.
I'm looking for most effective way to do this from Qt app. code level.
Probably i need to use nativeResourceFunctionForIntegration - but i'm not sure how to use it for modifying Qt internal variable (QKmsOutput.mode)
Can somebody hint me how to do this most effectively?
best will be some exemplary code snippet :-)thx in advance!