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

QWindow with Metal backend freezes when reparented across screens

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.17, 5.15.19, 6.9.1
    • GUI: Other
    • None
    • macOS
    • macOS

    Description

      On a Mac that has two or more physical screens:

      • Create a QWindow using the Metal rendering backend.
      • Render a new frame to the QWindow every time it receives a QEvent::UpdateRequest
      • Host the QWindow inside a top-level QWidget using QWidget::createWindowContainer()
      • Reparent the container Widget into another toplevel QWidget

      If both toplevel QWidgets are on the same physical screen, rendering continues as expected.

      If the other toplevel QWidget is on a different screen, UpdateRequest events cease being delivered and the animation freezes.

      The issue occurs with both QRhi and 'native' Metal.

      See qtbase/tests/manual/rhi/multiwindow for a base example.

      Attachments

        1. multiwindow.cpp
          19 kB
          Richard Thompson
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            rthompson Richard Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes