Replace deprecated QtWebKit with QtWebEngine

This commit is contained in:
Jiansheng QIU committed 2022-04-23 13:07:02 +08:00
1 parent 323aab6bf9
commit 9ec46bcd2e
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ You will find the needed Debian Jessie packages in the following list.
util-linux (from essential) for the lsblk command.
PYTHON_DBUS_PACKAGES="python3-gi python3-dbus"
PYTHON_PACKAGES="python-pyqt5 python-pyqt5.qtwebkit"
PYTHON_PACKAGES="python-pyqt5 python-pyqt5.qtwebengine"
RAID_PACKAGES="dmraid"
LVM_PACKAGES="lvm2"
CRYPTSETUP_PACKAGES="cryptsetup \
+2 -2
View File
@@ -24,7 +24,7 @@ import time
import linecache
import datetime
import errno
from PyQt5 import QtGui, QtCore, QtWebKit, QtWidgets, QtWebKitWidgets
from PyQt5 import QtGui, QtCore, QtWidgets, QtWebEngineWidgets
from functools import partial
from enum import Enum, IntEnum
@@ -524,7 +524,7 @@ class MainWindow(QtWidgets.QWidget):
self.help_btn.setToolTip(help_support_option.getDescription())
self.help_btn.setIcon(QtGui.QIcon(support_icon_path))
self.wb = QtWebKitWidgets.QWebView()
self.wb = QtWebEngineWidgets.QWebEngineView()
self.wb.load(url)
grid = QtWidgets.QGridLayout()