标签: python pyqt
PyQt类是否继承自对象?
答案 0 :(得分:5)
>>> from PyQt4 import QtCore >>> QtCore.QObject.__mro__ (<class 'PyQt4.QtCore.QObject'>, <type 'sip.wrapper'>, <type 'sip.simplewrapper'>, <type 'object'>)
所以答案是肯定的(至少QObject确实如此,但我认为QObject的非后代也是如此。
QObject