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

GNOME: QWebEngineView window is grey empty after minimizing and un-minimizing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.12.8, 5.15.6
    • WebEngine
    • None
    • Linux/Wayland, Linux/X11

    Description

      I use the sample code for QWebEngineView available at https://doc.qt.io/qt-5/qtwebengine-webenginewidgets-minimal-example.html

      On Ubuntu 20.04.3 LTS with Gnome, if I minimize the sample application window, then un-minimize the windows I only get an empty grey window. See attached minmax.png picture.

      I can get the correct web page content (redraw) by resizing the window. See resize.png picture.

      i also tested on Ubuntu 21.04 using Qt 5.15.6 and I still reproduce the problem.

      But I then installed KDE on my Ubuntu 20.04 and this time I do NOT have the issue using the same binary as I used on GNOME.

      Something is special when GNOME (3.36.8) is the desktop environment. The problem is present with both GNOME+X11 and GNOME+Wayland.

      One way I found to avoid the problem is to remove the minimize button from the window. But that is not a correct fix.

      I attach my source code.

      Attachments

        1. main.cpp
          0.8 kB
        2. mainwindow.cpp
          0.1 kB
        3. mainwindow.h
          0.2 kB
        4. minmax-1.png
          minmax-1.png
          1.21 MB
        5. resize.png
          resize.png
          1.90 MB
        6. webengine.pro
          1.0 kB

        Issue Links

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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              ludovic42 Ludovic Rousseau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes