def __init__(self): QTableView.__init__(self) self.__configer = get_config() # 拉申最后一列 self.horizontalHeader().setStretchLastSection(True) # ... self.resizeColumnToContents(True) # 不显示格间距 self.setShowGrid(False) self.alternatingRowColors() self.setStyleSheet(get_theme("TableView"))
def __init__(self, parent=None): QTableView.__init__(self, parent) self.progbar = ProgressBarDelegate(self) self.setItemDelegateForColumn(1, CheckBoxDelegate(self)) self.setItemDelegateForColumn(3, self.progbar)
def __init__(self, parent=None): QTableView.__init__(self, parent) self.auto_resize_columns = False
def __init__(self, QWidget_parent=None): QTableView.__init__(self, QWidget_parent) self.clicked.connect(self.click)
def __init__(self, parent=None): QTableView.__init__(self, parent)