Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to switch mouse control between screens ?
Qt 6.11 is out! See what's new in the release blog

How to switch mouse control between screens ?

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.6k 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.
  • B Offline
    B Offline
    bobythomas
    wrote on last edited by
    #1

    Hi,

    working on embedded linux.
    I started two application instances each outputs to different frame buffers.

    system("/opt/dvr_rdk/ti810x/bin/myapplication1 -qws hdmi0 hdmi1 -display LinuxFb:/dev/fb0 &");
    system("/opt/dvr_rdk/ti810x/bin/myapplication2 -qws hdmi0 hdmi1 -display LinuxFb:/dev/fb2 &");

    /dev/fb0 corresponds to HDMI and /dev/fb2 corresponds to composite out. The mouse control is default to /dev/fb0.
    How could I switch the mouse control between these two applications ?

    Regards,
    Boby.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      IIRC, it's the first server started that takes control of the mouse/keyboard, did you try to first call myapplication2 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bobythomas
        wrote on last edited by
        #3

        Hi,

        But i need to switch the control to myapplication2 from myapplication1. I mean from code of myapplication1 upon a specific user input i want to switch control to myapplication2. ( actually need to switch between these two apps )

        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