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. Multiple QT apps in virtual Terminals
Qt 6.11 is out! See what's new in the release blog

Multiple QT apps in virtual Terminals

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 1.2k 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.
  • N Offline
    N Offline
    navikh333
    wrote on last edited by
    #1

    Hi All,

    I have 2 QT apps. The first apps is Sway which runs on XCB platform plugin. The 2nd app is another QT app which either uses eglfs or linuxfb as platform plugin.

    First I run sway, then I run the 2nd app which first switches the virtual terminal to tty2 and then displays. Now I want to switch to tty1 which has sway running. With LinuxFb plugin in 2nd QT app I cannot do chvt 1 because it just hangs. If I use eglfs plugin to run second app it never switches virtual terminals and displays.

    Please let me know how can I run 2 QT apps in different virtual terminals.

    Thank you for your support.

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

      Hi and welcome to devnet,

      I am not sure that this possible like that.

      Why not use xcb for both ?

      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
      • N Offline
        N Offline
        navikh333
        wrote on last edited by
        #3

        Hi @SGaist

        We want to slowly move away to EGLFS but for now we have one QT app(Sway compositor https://swaywm.org/ ) with XCB plugin and the other with EGLFS.
        Two questions

        1. Would 2 qt apps run in parallel in virtual terminal if they both use EGLFS plugin and switch between them using chvt? If NO, why?
        2. Would 2 qt apps run in parallel in virtual terminal if they both use Linuxfb plugin and switch between them using chvt? If NO, why?

        Sorry, I am very new to QT. I couldnt find any questions related to my use case where 2 QT apps/processes use the same display.

        Thanks a lot.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4
          1. I highly doubt that because each application will take ownership of input devices.

          2. Same as above.

          If you want active multi-head support why are you dumping Wayland ?

          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
          1

          • Login

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