我正在使用Python3和Qt5在Ubuntu python3-pyqt5.qtwebkit
到render webpages上使用18.04, 64 bit
。但是,this URL无法正确呈现(请参阅下文)。下面是我正在使用的代码。原因可能是什么?
import sys
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebKit import *
from PyQt5.QtWebKitWidgets import *
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
app = QApplication(sys.argv)
web = QWebView()
web.load(QUrl("https://www.semanticscholar.org/search?q=Amplification%20Hell%3A%20Revisiting%20Network%20Protocols%20for%20DDoS%20Abuse.&sort=relevance"))
web.show()
sys.exit(app.exec_())