From 9ec46bcd2e6437f92d032f98cb284d576b2f4f51 Mon Sep 17 00:00:00 2001 From: Jiansheng QIU <632863986@qq.com> Date: Sat, 23 Apr 2022 13:07:02 +0800 Subject: [PATCH] Replace deprecated QtWebKit with QtWebEngine --- INSTALL | 2 +- bin/rescapp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/INSTALL b/INSTALL index 13774cb..0dfe12d 100644 --- a/INSTALL +++ b/INSTALL @@ -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 \ diff --git a/bin/rescapp b/bin/rescapp index a1c03bc..ee2c278 100755 --- a/bin/rescapp +++ b/bin/rescapp @@ -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()