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 move widgets between screens
QtWS25 Last Chance

How to move widgets between screens

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 3 Posters 450 Views
  • 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.
  • S Offline
    S Offline
    SuperMonkeyRules
    wrote on 30 Mar 2024, 12:54 last edited by
    #1

    I have compiled my QT program for raspberry pi and it works fine except I cant figure out how to use the move function on a window to move the window between the different displays I have connected to my pi.

    I create three different widgets which should show on three separate displays.

    It works fine on my windows machine so I assume its something to do with Raspbian's window manager?

    Thanks

    S 1 Reply Last reply 30 Mar 2024, 21:57
    0
    • S SuperMonkeyRules
      30 Mar 2024, 12:54

      I have compiled my QT program for raspberry pi and it works fine except I cant figure out how to use the move function on a window to move the window between the different displays I have connected to my pi.

      I create three different widgets which should show on three separate displays.

      It works fine on my windows machine so I assume its something to do with Raspbian's window manager?

      Thanks

      S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 30 Mar 2024, 21:57 last edited by
      #2

      Hi,

      Any chances you are using Wayland as display manager ?

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

      S 1 Reply Last reply 1 Apr 2024, 00:27
      0
      • S SGaist
        30 Mar 2024, 21:57

        Hi,

        Any chances you are using Wayland as display manager ?

        S Offline
        S Offline
        SuperMonkeyRules
        wrote on 1 Apr 2024, 00:27 last edited by
        #3

        @SGaist Yes

        J S 2 Replies Last reply 1 Apr 2024, 08:13
        0
        • S SuperMonkeyRules
          1 Apr 2024, 00:27

          @SGaist Yes

          J Offline
          J Offline
          JonB
          wrote on 1 Apr 2024, 08:13 last edited by
          #4

          @SuperMonkeyRules
          Then @SGaist is likely to follow up with: "under Wayland the window manager is in control of all layout, including window positions", and does not let you interfere with that. At least with the current/standard compositor.

          1 Reply Last reply
          2
          • S SuperMonkeyRules
            1 Apr 2024, 00:27

            @SGaist Yes

            S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 1 Apr 2024, 17:32 last edited by
            #5

            @SuperMonkeyRules what @JonB said !

            But there might be some hope with QWindow::startSystemMove. See this StackOverflow thread. I haven't tested it yet though.

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

            S 1 Reply Last reply 2 Apr 2024, 08:42
            1
            • S SGaist
              1 Apr 2024, 17:32

              @SuperMonkeyRules what @JonB said !

              But there might be some hope with QWindow::startSystemMove. See this StackOverflow thread. I haven't tested it yet though.

              S Offline
              S Offline
              SuperMonkeyRules
              wrote on 2 Apr 2024, 08:42 last edited by
              #6

              @SGaist Thanks both of you.
              But Ive swapped to X11 and that fixed my problems.

              1 Reply Last reply
              0

              1/6

              30 Mar 2024, 12:54

              • Login

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