No module named 'PyQt5.QtWebEngineWidgets'
I tried reinstalling PyQt5 And PyQtWebEngine
but still its not working
This is my code
import sys
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtWebEngineWidgets import *
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
self.browser = QWebEngineView()
self.browser.setUrl(QUrl('http://google.com'))
self.setCentralWidget(self.browser)
self.showMaximized()
app = QApplication(sys.argv)
QApplication.setApplicationName('Pheonix Browser')
window = MainWindow()
app.exec()
Top comments (1)
dev.to doesn't function well as a help forum - you would be better off asking at StackOverflow: stackoverflow.com/
Remember to describe
Photos of text are unhelpful - copy and paste the error text into the post so that it can be found by other people.
Don't answer those here - post at StackOverflow.