Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84614

QtWayland client distorted on Raspberry Pi 4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.14.2, 5.15.0
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Linux/Yocto

      Description

      I'm trying to create a very simple wayland compositor using the examples found here, like this:

       

      import QtQuick 2.12
      import QtQuick.Window 2.2
      import QtWayland.Compositor 1.3
      
      WaylandCompositor {
          id: wlcompositor
          WaylandOutput {
              compositor: wlcompositor
              window: Window {
                  width: 800
                  height: 480
                  visible: true
                  title: wlcompositor.socketName
                  Grid {
                      anchors.fill: parent
                      anchors.margins: 100
                      columns: 2
                      Repeater {
                          model: shellSurfaces
                          ShellSurfaceItem {
                              id: shellSurfaceItem
                              autoCreatePopupItems: true
                              shellSurface: modelData
                              onSurfaceDestroyed: shellSurfaces.remove(index)
                          }
                      }
                  }
              }
          }
          ListModel { id: shellSurfaces }
      
          XdgShell {
              onToplevelCreated: shellSurfaces.append({shellSurface: xdgSurface})
          }
      }
      

       

      And then I'm creating a separate client app that just creates a couple Rectangles as a test.
       

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window {
          id: window
          visible: true
          width: 200
          height: 200
      
          Rectangle {
              anchors.fill: parent
              color: "green"
      
              Rectangle {
                  x: 10
                  y: 10
                  width: 100
                  height: 100
                  color: "blue"
              }
          }
      }
      

       

      Everything seems simple and straightforward. But when I run it on my Pi4 (using the -platform wayland flag), the client gets crazy distortion, like this: 

      I'm testing it with Boot2Qt with versions 5.14.2 and 5.15.0 with the same results. There are no errors on the console. Nothing that indicates anything is wrong except that it looks awful.

      I did notice that if I use weston as my compositor instead of QtWayland, then the app looks perfect. So that makes me think there's something wrong with WaylandCompositor. But my search of google found nobody else complaining of the same thing.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.graphics.and.multimedia Qt Graphics Team
            Reporter:
            jargill Jarret Gill
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes