美文网首页
Qt类继承关系

Qt类继承关系

作者: 4thirteen2one | 来源:发表于2019-05-22 23:42 被阅读0次
    print(QObject.__subclasses__())
    def getSubClasses(cls):
        for subcls in cls.__subclasses__():
            print(cls, subcls)
            if len(subcls.__subclasses__())>0:
                getSubClasses(subcls)
    
    def getSupClasses(cls):
        mros = cls.mro()
        for mro in mros:
            print(mro)
    

    相关文章

      网友评论

          本文标题:Qt类继承关系

          本文链接:https://www.haomeiwen.com/subject/uocmzqtx.html