You have to capture the resize event.
This was coded in PyQt
def resizeEvent(self, event):
# Dynamically resize rows and columns
rowHeight = ( self.size().height() - self.horizontalHeader().size().height())/6 - 1
colWidth = ( self.size().width() )/7 - 1
for x in xrange(0, 6): self.setRowHeight(x, rowHeight)
for x in xrange(0, 7): self.setColumnWidth(x, colWidth)
def resizeEvent(self, event):
# Dynamically resize rows and columns
rowHeight = ( self.size().height() - self.horizontalHeader().size().height())/6 - 1
colWidth = ( self.size().width() )/7 - 1
for x in xrange(0, 6): self.setRowHeight(x, rowHeight)
for x in xrange(0, 7): self.setColumnWidth(x, colWidth)
To copy to clipboard, switch view to plain text mode
Bookmarks