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

virtual multi display

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 2 Posters 1.9k 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.
  • E Offline
    E Offline
    Eric Yin
    wrote on last edited by
    #1

    I have several virtual display like :1.0, :2.0..., my widget Window is launched at :1.0, but i would like to switch/flipping the Window to be shown in :2.0 instead by pressing a key.
    I did search online, looks like that i need make connection to both X server (:1.0 and :2.0), but how the events are handled and so far? i'm a newbie in Qt.
    thanks,
    Eric.

    SGaistS 1 Reply Last reply
    0
    • E Eric Yin

      I have several virtual display like :1.0, :2.0..., my widget Window is launched at :1.0, but i would like to switch/flipping the Window to be shown in :2.0 instead by pressing a key.
      I did search online, looks like that i need make connection to both X server (:1.0 and :2.0), but how the events are handled and so far? i'm a newbie in Qt.
      thanks,
      Eric.

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      What does QGuiApplication::screens return ?

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

      E 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        What does QGuiApplication::screens return ?

        E Offline
        E Offline
        Eric Yin
        wrote on last edited by
        #3

        @SGaist said in virtual multi display:

        Hi and welcome to devnet,

        What does QGuiApplication::screens return ?

        it only return 1 screen.

        SGaistS 1 Reply Last reply
        0
        • E Eric Yin

          @SGaist said in virtual multi display:

          Hi and welcome to devnet,

          What does QGuiApplication::screens return ?

          it only return 1 screen.

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.

          Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.

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

          E 2 Replies Last reply
          0
          • SGaistS SGaist

            I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.

            Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.

            E Offline
            E Offline
            Eric Yin
            wrote on last edited by
            #5

            @SGaist said in virtual multi display:

            I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.

            Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.

            Thanks for the info.
            One guy mentioned: “virtual X-server on top of multiple other X servers”, can this be a possible solution? is there such an virtual X-server?

            SGaistS 1 Reply Last reply
            0
            • E Eric Yin

              @SGaist said in virtual multi display:

              I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.

              Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.

              Thanks for the info.
              One guy mentioned: “virtual X-server on top of multiple other X servers”, can this be a possible solution? is there such an virtual X-server?

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Eric-Yin that I currently don't know sorry.

              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
              • SGaistS SGaist

                I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.

                Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.

                E Offline
                E Offline
                Eric Yin
                wrote on last edited by
                #7

                @SGaist said in virtual multi display:

                I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.

                Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.

                i installed the Xdmx which can be a headless daemon, right? is there instruction/forum on how to use/configure it? thanks.

                SGaistS 1 Reply Last reply
                0
                • E Eric Yin

                  @SGaist said in virtual multi display:

                  I don't think you can have a Qt application connected to two different X servers at once. Qt establishes at connection at startup through the xcb backend and I don't think you can break that connection to switch like you want to do.

                  Depending on your application's need, you could have a headless daemon part and launch one GUI per X server to talk to this daemon.

                  i installed the Xdmx which can be a headless daemon, right? is there instruction/forum on how to use/configure it? thanks.

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Eric-Yin I would start with the tool documentation.

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

                  E 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    @Eric-Yin I would start with the tool documentation.

                    E Offline
                    E Offline
                    Eric Yin
                    wrote on last edited by
                    #9

                    @SGaist said in virtual multi display:

                    @Eric-Yin I would start with the tool documentation.

                    Tried Xdmx, Qt Apps(even a simple widget without any code) always make Xdmx crash (Segmentation fault at address 0xc); xlogo got displayed at the back-end display without window frame.

                    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