[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] implement a custom QWebEngineUrlSchemeHandler
From:       "Zhao Lee" <redstone-cold () 163 ! com>
Date:       2018-12-19 12:57:27
Message-ID: 70407554.d4.167c68ad782.Coremail.redstone-cold () 163 ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

Yes, assign it a parent solved the problem .
Thanks very much !






ÔÚ2018Äê12Ô 19 17ʱ56·Ö, "Detlev Offenbach"<detlev@die-offenbachs.de>дµÀ:

Try to instantiate your scheme handler first and keep it in a variable.
Otherwise it might get collected by the Python garbage collector. See the eric
web browser as an example.

Am Mittwoch, 19. Dezember 2018, 09:38:58 CET schrieb Zhao Lee:
> I want to implement a custom QWebEngineUrlSchemeHandler to hand  custom URL
> scheme 'sound', but the requestStarted() never got called , what's wrong ?
> code: https://bpaste.net/show/3be4b1874aed

--
Detlev Offenbach
detlev@die-offenbachs.de


[Attachment #5 (text/html)]

<div style="color:#000; font-size: 14px;font-family: arial;"><div>Yes, assign it a \
parent solved the problem .</div><div>Thanks very much \
!</div><div><br></div><div><br></div><div><br></div></div><!-- jy5ContentSuffix \
--><div>ÔÚ2018Äê12Ô 19 17ʱ56·Ö, "Detlev \
Offenbach"&lt;detlev@die-offenbachs.de&gt;дµÀ:</div><blockquote id="isReplyContent" \
style="padding-left:1ex; margin: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px \
solid"><br>Try to instantiate your scheme handler first and keep it in a variable. \
<br>Otherwise it might get collected by the Python garbage collector. See the eric \
<br>web browser as an example.<br><br>Am Mittwoch, 19. Dezember 2018, 09:38:58 CET \
schrieb Zhao Lee:<br>&gt; I want to implement a custom QWebEngineUrlSchemeHandler to \
hand &nbsp;custom URL<br>&gt; scheme 'sound', but the requestStarted() never got \
called , what's wrong ?<br>&gt; code: https://bpaste.net/show/3be4b1874aed<br><br>-- \
<br>Detlev Offenbach<br>detlev@die-offenbachs.de<br><br></blockquote><br><br><span \
title="neteasefooter"><p>&nbsp;</p></span>


[Attachment #6 (text/plain)]

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic