Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1707

在使用pqytwebengine-qt5 5.15.2时,当设置系统颜色深度为16位时,webengineview无法正常工作,会显示黑屏

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.15
    • Other
    • None
    • 在docker 环境下的ubuntu18.04
    • Linux/Other display system

    Description

      complete code:

      import os

      from PyQt5.QtCore import *
      from PyQt5.QtWidgets import *
      from PyQt5.QtGui import *
      from PyQt5 import QtCore, QtGui, QtWidgets
      from PyQt5.QtWebEngineWidgets import *
      import sys

      class Ui_MainWindow(QMainWindow):

          def _init_(self):

              super(Ui_MainWindow, self)._init_()
              self.setObjectName("MainWindow")
              self.resize(1386, 795)
              self.path=sys.argv[1]
              self.title=sys.argv[2]
              self.web_page=QWebEngineView()
              self.web_page.settings().setAttribute(QWebEngineSettings.WebAttribute.PluginsEnabled,True)
              self.web_page.load(QUrl(self.path))
              self.setCentralWidget(self.web_page)

             self.retranslateUi()
             QtCore.QMetaObject.connectSlotsByName(self)

          def retranslateUi(self):
              _translate = QtCore.QCoreApplication.translate
              self.setWindowTitle(_translate("MainWindow", self.title))

      if _name_ == "_main_":
          app=QApplication(sys.argv)
          tree = Ui_MainWindow()
          tree.show()
          sys.exit(app.exec_())

      I use a QwebEngineView (version=5.15 ) for a customer browser ,it works very good untill i change system's color depth ,from 24bit color to 16 bit color 。

      next picture  is  a normal state , when  use it open a html

       

      but change system color depth from 24 to 16 , it works error , eg : next picture .

      but i'm sure ,it is working ,becasue i can see a picture tips  when i move mouse to some erea .

      is the qwebengineview no support 16bit color system?  if it support 16bit color system ,what  should i do ?  

       I know it that the pyqt isn’t a Qt company product , and i just want to get some advice on how to solve this problem.

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            snow Yan Qiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes