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

Webengine rendering duplicates mainwindow rendering after palette change

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.8, 5.9
    • Fix Version/s: 5.6.3, 5.9.1
    • Component/s: Quick: Widget, WebEngine
    • Labels:
      None
    • Environment:
      Linux, X11, Plasma 5, OpenSuSE Leap 42.2, self-compiled qt 5.8 from git.

      Description

      This must be the weirdest bug I have ever seen. Fully reproducible though.

      Patch your qtwebengine/examples/webenginewidgets/demobrowser to add this at the end of BrowserApplication::postLaunch:

          QTimer::singleShot(1000, this, []() {
                  QPalette palette;
                  palette.setColor(QPalette::WindowText, Qt::gray);
                  qApp->setPalette(palette);
          });
      

      then launch demobrowser (on any website), and you should see something very strange when the palette changes, a copy of the rendering of the tabbar and of the bottom toolbar appears inside the webengine rendering.
      It's like there's an offset in the rendering or something.

      Patch attached for convenience, as well as screenshot for clarity.

      BTW this usually rapidly ends with this assert, e.g. after resizing the window.
      ASSERT: "!d->offscreenWindow->handle()" in file /d/qt/5/kde/qtdeclarative/src/quickwidgets/qquickwidget.cpp, line 985

        Attachments

        1. demobrowser.diff
          0.6 kB
        2. Plasma4.png
          Plasma4.png
          2.74 MB
        3. Screenshot_20170219_105510.png
          Screenshot_20170219_105510.png
          1.49 MB
        4. Screenshot_20170531_133106.png
          Screenshot_20170531_133106.png
          347 kB
        5. Test.patch
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              allan.jensen Allan Sandfeld Jensen
              Reporter:
              dfaure_kdab David Faure
            • Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes