Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.15
-
None
-
在docker 环境下的ubuntu18.04
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.