[PyQt] Can't connect to QWebEnginePage::renderProcessTerminated

Detlev Offenbach detlev at die-offenbachs.de
Mon Feb 6 18:33:43 GMT 2017


Hi Florian,

in the new eric web browser it works fine using your 'slot1' method. Here is an extract.

self.renderProcessTerminated.connect(self.__renderProcessTerminated)

    def __renderProcessTerminated(self, status, exitCode):
        """
        Private slot handling a crash of the web page render process.
        
        @param status termination status
        @type QWebEnginePage.RenderProcessTerminationStatus
        @param exitCode exit code of the process
        @type int
        """
        if status == QWebEnginePage.NormalTerminationStatus:
            return
        
        QTimer.singleShot(0, self.__showTabCrashPage)

The slot is not decorated. Hope this helps.

Detlev

PS: You may want to have a look at the new eric web browser to get some ideas. 
QtWenEngine is a bit tricky from time-to-time.

On Monday 06 February 2017, 17:50:52 Florian Bruhin wrote:
> Hi,
> 
> I tried various ways of connecting to
> QWebEnginePage.renderProcessTerminated (see the attached file), but
> they all fail with:
> 
> 	QObject::connect: No such signal
> QWebEnginePage::renderProcessTerminated(QWebEnginePage::RenderProcessTermin
> ationStatus,int) Traceback (most recent call last):
> 	  File "render.py", line 23, in <module>
> 		page.renderProcessTerminated.connect(obj.slot1)
> 	TypeError: connect() failed between
> renderProcessTerminated(QWebEnginePage::RenderProcessTerminationStatus,int)
> and unislot()
> 
> Florian-- 
*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170206/e403dd52/attachment.html>


More information about the PyQt mailing list