UicLoadUi: fixed an issue causing the code generation to fail for forms containing QtWebEngine widgets (see issue313)

Tue, 17 Dec 2019 19:32:21 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 17 Dec 2019 19:32:21 +0100
changeset 7357
fe4e06357f54
parent 7356
d975331c5daa
child 7358
6540b6718e80

UicLoadUi: fixed an issue causing the code generation to fail for forms containing QtWebEngine widgets (see issue313)

eric6/Project/UicLoadUi.py file | annotate | diff | comparison | revisions
--- a/eric6/Project/UicLoadUi.py	Sat Dec 14 17:54:25 2019 +0100
+++ b/eric6/Project/UicLoadUi.py	Tue Dec 17 19:32:21 2019 +0100
@@ -19,6 +19,11 @@
     print("PyQt5 could not be found.")
     sys.exit(1)
 
+try:
+    from PyQt5 import QtWebEngineWidgets    # __IGNORE_WARNING__
+except ImportError:
+    pass
+
 
 def objectName(formFile, projectPath):
     """

eric ide

mercurial