Exemple #1
0
    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"))
Exemple #2
0
 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
Exemple #4
0
 def __init__(self, QWidget_parent=None):
     QTableView.__init__(self, QWidget_parent)
     self.clicked.connect(self.click)
Exemple #5
0
 def __init__(self, parent=None):
     QTableView.__init__(self, parent)
Exemple #6
0
 def __init__(self, parent=None):
     QTableView.__init__(self, parent)
     self.auto_resize_columns = False