def __init__(self, parent=None, cols=None):
QtWidgets.QTreeView.__init__(self, parent=parent)
self.setSortingEnabled(True)
self.setAlternatingRowColors(True)
if cols is not None:
model = VQTreeModel(parent=self, columns=cols)
self.setModel(model)
评论列表
文章目录