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

Calling show on a QWebEngineView a second time leads to an all black page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: 5.12.4
    • Fix Version/s: 5.12.5
    • Component/s: WebEngine
    • Labels:
      None
    • Platform/s:
      Linux/X11, macOS, Windows

      Description

      When calling show on a QWebEngineView a second time, the view will display all black contents.

       

      Minimal working example:

      #include <QApplication>
      #include <QWebEngineView>
      
      int main(int argc, char *argv[])
      {
          QCoreApplication::setOrganizationName("QtExamples");
          QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
          QApplication app(argc, argv);
      
          QWebEngineView view;
          view.setUrl(QUrl(QStringLiteral("https://www.qt.io")));
          view.resize(1024, 750);
          view.show();
      
          while(view.isVisible())
          {
              app.processEvents();
          }    
          view.show();
      
          return app.exec();
      }
      

      Tested on Linux, Windows and Mac with the same result.

       

       

        Attachments

        1. Black_WebEngineView_With_Qt_5_12_4.gif
          769 kB
          Thomas Lämmlein
        2. No_Black_WebEngineView_With_Qt_5_12_5.gif
          1.12 MB
          Thomas Lämmlein
        3. stylesheetbrowser.zip
          3 kB
          Thomas Lämmlein
        4. webEngineViewBug.gif
          423 kB
          Philipp Klaffert
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt_webengine_team Qt WebEngine Team
            Reporter:
            pklaffert Philipp Klaffert
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes