예제 #1
0
 def resizeEvent(self, event):
     QTableWidget.resizeEvent(self, event)
     header = self.horizontalHeader()
     # resizes the column headers to fit the contents,
     # currently this overwrites any manual changes to the widths of the columns
     header.resizeSections(QHeaderView.ResizeToContents)
     # then allows the users to resize the headers manually
     header.setSectionResizeMode(QHeaderView.Interactive)
예제 #2
0
 def resizeEvent(self, event):
     QTableWidget.resizeEvent(self, event)
     header = self.horizontalHeader()
     # resizes the column headers to fit the contents,
     # currently this overwrites any manual changes to the widths of the columns
     header.resizeSections(QHeaderView.ResizeToContents)
     # then allows the users to resize the headers manually
     header.setSectionResizeMode(QHeaderView.Interactive)
예제 #3
0
파일: view.py 프로젝트: mantid-roman/mantid
 def resizeEvent(self, event):
     QTableWidget.resizeEvent(self, event)
     header = self.horizontalHeader()
     header.setSectionResizeMode(QHeaderView.Interactive)