Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to modify Qt variable (QKmsOutput.mode) from application level?

How to modify Qt variable (QKmsOutput.mode) from application level?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 226 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    warpme
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved