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

Qt widgets don't always repaint in response to expose events

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.10
    • None
    • Linux/Wayland

    Description

      The core parts in QtWayland QPA rely on the assumption that the window will repaint if an expose event is sent.

      However, with widgets we observe the opposite sometimes. The QPA sends an expose event but the QWidgetRepaintManager ignores the request (even if the window size has changed!) at https://invent.kde.org/qt/qt/qtbase/-/blob/355e0d85eb4a05acd4d5c9d6b2f1cfce7ccdb144/src/widgets/kernel/qwidgetrepaintmanager.cpp#L619-623. However, the QPA may send an expose event to request new window content even if the size doesn't change, for example when the scale factor changes.

      Perhaps the QWidgetRepaintManager could honor all expose events if the exposedWidget is tlw?

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            zzag Vlad Zahorodnii
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes