我们从Python开源项目中,提取了以下1个代码示例,用于说明如何使用PyQt4.QtCore.QAbstractItemModel()。
def __del__(self): # print('Deleting node with text %s' % self.text) pass # Model for the database tree which is displayed in the left part of the main window. # The behavior of this class follows the requirements of the QtCore.QAbstractItemModel (weird!). # Note that this class is tightly coupled with the Sacred database structure.