irendeir
22nd November 2012, 14:41
Hi all! I have a question about QTableWidget. How can I keep a proportion of the columns when I refinable widget table(window application)?
For example I set for two columns following sizes:
self.tableAsset.horizontalHeader().resizeSection (0, 170)
self.tableAsset.horizontalHeader().resizeSection (1, 30)
Now I get that when you create the window size of the cells are correct, but when you scale extends only the latter, and it is necessary that they are uniformly scaled to keep its current proportions. I want to keep a prescribed proportion. Thanks in advance for your reply. And sorry for my bad English. :rolleyes:
For example I set for two columns following sizes:
self.tableAsset.horizontalHeader().resizeSection (0, 170)
self.tableAsset.horizontalHeader().resizeSection (1, 30)
Now I get that when you create the window size of the cells are correct, but when you scale extends only the latter, and it is necessary that they are uniformly scaled to keep its current proportions. I want to keep a prescribed proportion. Thanks in advance for your reply. And sorry for my bad English. :rolleyes: