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

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

XMLWordPrintable

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

      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.

        1. minmax-1.png
          1.21 MB
          Ludovic Rousseau
        2. resize.png
          1.90 MB
          Ludovic Rousseau
        3. main.cpp
          0.8 kB
          Ludovic Rousseau
        4. mainwindow.cpp
          0.1 kB
          Ludovic Rousseau
        5. mainwindow.h
          0.2 kB
          Ludovic Rousseau
        6. webengine.pro
          1.0 kB
          Ludovic Rousseau
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes