[PySide] Inherit from QQmlParserStatus interface

許友綸 tim37021 at gmail.com
Tue Dec 1 18:39:28 CET 2020


Hi PySide Team,
I try to create an object that need componentComplete notification, thus I
inherit from QQmlParserStatus

My code has no runtime error, but the method is never called.

class AudioInputDevice(QObject, QQmlParserStatus):
    def componentComplete(self):
        pass
    def classBegin(self):
        pass

I also find PyQt5's example, the way of inheriting from Qt's interface is
almost the same. I am not sure if I am doing wrong.

-Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/pyside/attachments/20201202/423e0fdb/attachment.html>


More information about the PySide mailing list