WebBrowserView: introduced a fix (kind of hack) for strange builds of QtWebEngine lacking QWebEngineFindTextResult although findTextFinished signal is defined.

Mon, 27 Jul 2020 19:15:26 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 27 Jul 2020 19:15:26 +0200
changeset 7650
36c2dc7e3437
parent 7649
fa1b4e735e00
child 7651
ca87b7490449

WebBrowserView: introduced a fix (kind of hack) for strange builds of QtWebEngine lacking QWebEngineFindTextResult although findTextFinished signal is defined.

eric6/WebBrowser/WebBrowserView.py file | annotate | diff | comparison | revisions
--- a/eric6/WebBrowser/WebBrowserView.py	Tue Jul 14 19:32:14 2020 +0200
+++ b/eric6/WebBrowser/WebBrowserView.py	Mon Jul 27 19:15:26 2020 +0200
@@ -169,9 +169,12 @@
             # pre Qt 5.12
             pass
         try:
+            from PyQt5.QtWebEngineCore import QWebEngineFindTextResult
+            # __IGNORE_WARNING__
+            
             self.__page.findTextFinished.connect(
                 self.__findTextFinished)
-        except AttributeError:
+        except (AttributeError, ImportError):
             # pre Qt 5.14
             pass
     

eric ide

mercurial