Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved X11: Opening QWidget in a separate XScreen

    C++ Gurus
    3
    4
    1194
    Loading More Posts
    • 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
      ElSampsa last edited by

      Hi,

      If a Qt application is opened in xscreen ":0.0", is it possible for that application instance to open a QWidget in a different xscreen (in, say, ":0.1")

      At the X windowing API, this would map to to calling Xlib's XOpenDisplay() function with a certain display name when creating the QWidget.

      Does Qt have this possibility?

      Regards,

      Sampsa

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Do you mean move the widget to one of the desktop returned by QDesktopWidget ?

        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 Reply Quote 0
        • E
          ElSampsa last edited by

          Hi,

          I have used QDesktopWidget before to move windows between different screens (inside the same xscreen).

          Now that I read the class description again, it does say that QDesktopWidget should work for "multiple desktops" as well.. But "multiple desktops" may refer to either multiple desktops on a single "macro" xscreen (i.e. at :0.0) or to desktops on different xscreens (i.e. :0.0 and :0.1)

          Here are some relevant posts that I found:

          http://www.qtcentre.org/threads/64782-Mapping-QScreen-to-X11-display-number
          https://bugreports.qt.io/browse/QTBUG-45485
          https://bugreports.qt.io/browse/QTBUG-48545

          I guess there is only one way to find out: trying QDesktopWidget with multiple xscreen configured and see if it works.

          .. however, I wanted to know a-priori, if this is possible in Qt, before starting to tweak with "xorg.conf". Trying to configure multiple xscreens for the nouveau graphics driver is such a pain these days..

          Regards,

          Sampsa

          K 1 Reply Last reply Reply Quote 0
          • K
            Konstantin Tokarev @ElSampsa last edited by

            @ElSampsa said in X11: Opening QWidget in a separate XScreen:

            Trying to configure multiple xscreens for the nouveau graphics driver is such a pain these days..

            But you can use graphics driver instead of nouveau... :)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post