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





在2018年12月19 17时56分, "Detlev Offenbach"<[email protected]>写道:

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
[email protected]

_______________________________________________
PySide mailing list
[email protected]
https://lists.qt-project.org/listinfo/pyside

Reply via email to