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

Solid black window instead of web page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.9.2
    • WebEngine
    • None

    Description

      The following test script produces a solid black window while a rendered web page is expected instead:

       

      #!/usr/bin/env python3
      import sys
      import argparse
      
      from PyQt5.QtCore import QUrl
      from PyQt5.QtWidgets import QApplication
      
      from PyQt5.QtWebEngineWidgets import QWebEngineView
      
      if __name__ == '__main__':
          app = QApplication(sys.argv)
      
          wv = QWebEngineView()
          using_webengine = True
      
          wv.loadStarted.connect(lambda: print("Loading started"))
          wv.loadProgress.connect(lambda p: print("Loading progress: {}%".format(p)))
          wv.loadFinished.connect(lambda: print("Loading finished"))
      
          wv.load(QUrl.fromUserInput("https://google.com"))
          wv.show()
      
          app.exec_()

      After the window opens, this is all what appears on console, and the window remains black:

      $ python3 webengine_test.py
      QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-davide'
      Loading progress: 10%
      Loading progress: 10%
      Loading started
      Loading progress: 20%
      Loading progress: 25%
      Loading progress: 25%
      Loading progress: 100%
      Loading finished
      Loading progress: 100%
      Loading progress: 100%
      

      The result is the same with different URLs being used.

      The script is a reduced snippet extracted from a Qutebrowser's test script which manifests the same problem.

      I have no knowledge of python nor Qt.

      Original bug reported downstream at Qutebrowser: https://github.com/qutebrowser/qutebrowser/issues/3394

      Attachments

        1. qtdiag.out
          5 kB
          davidebaldini
        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
            davidebaldini davidebaldini
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes