可以使用 PyQt5 的 QWebEngineView 类来在界面上显示网页。
首先,你需要在界面的布局中添加一个 QWebEngineView 对象,然后调用它的 load() 方法加载网页。例如:
import sys
from PyQt5.QtCore import QUrl
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtWebEngineWidgets import QWebEngineView
class MyWidget(QWidget):
def __init__(self):
super