qwebengineview

QWebEngineView.page().runJavaScript() does not run a JavaScript code correctly

QWebEngineView.page().runJavaScript() does not run a JavaScript code correctly Question: I am making a Python program using PyQt5 GUI library. I found out that using runJavaScript() method does not work for executing JavaScript code on my HTML document. Here is my HTML document – a Mapbox GL JS component. It can also be found here: https://docs.mapbox.com/mapbox-gl-js/example/simple-map/ …

Total answers: 1

Process finished with exit code -1073740791 (0xC0000409) error not opening a website

Process finished with exit code -1073740791 (0xC0000409) error not opening a website Question: I am creating a desktop app using PyQt5 and QtDesginer. I have a login page connected to a database, and the user is asked to enter username and password. In the designer, I created a window that opens a certain link. The …

Total answers: 2

How to insert a web browser in Python QT Designer

How to insert a web browser in Python QT Designer Question: I have created a simple user interface in QT Designer 5 and would like to include a widget that displays a webpage. I use the following code to use the ui file with python: from PyQt5 import uic, QtWidgets import sys app = QtWidgets.QApplication(sys.argv) …

Total answers: 2

OpenLayers Geolocation in PyQt 5.9

OpenLayers Geolocation in PyQt 5.9 Question: I’ve implemented a Website with a geolocation function and Button. This Webpage gets displayed fine in a QwebEngineView (OSM Map too). The Webpage is loaded def __init__(self, parent=None): super(MainGUI, self).__init__(parent) self.ui = uic.loadUi(“GPS.ui”, self) self.ui.w3View.load(QtCore.QUrl(‘file:///Map.html’)) All native OpenLayers Buttons (Zoom IN and OUT) are working fine. I created a …

Total answers: 2