Skip to content
Advertisement

Loading UI file with QWebengine through class using PyQt

I’m trying to load a UI file using PyQt5.uic.loadUi which has QWebEngineView, but my code currently loads a blank QT form.

It was working before until I changed the way classes were referencing each other. I’m new to working with classes and cannot understand the correct use of self and parent.

JavaScript

demoweb.ui file:

JavaScript

Advertisement

Answer

This has been resolved after following suggestions from musicmante

Thanks eyllanesc, your suggestion also resolved the problem but was no longer required in the simplified code.

Working code below

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement