I have created a tablewidget and i am increasing the size of the QDialogBox. I also want the qtablewidget size has to be increased along with the dialogBox.
self.dlg.setMinimumSize(1100, dh)self.dlg.resize(1100, dh) self.dlg.tableWidget.resizeColumnsToContents()# autofit the tableself.dlg.tableWidget.resizeRowsToContents()self.dlg.tableWidget.horizontalHeader().setStretchLastSection(True)The dialogsize is increased but the qtablewidget remains same. How can i increase the size of the table.
أكثر...
self.dlg.setMinimumSize(1100, dh)self.dlg.resize(1100, dh) self.dlg.tableWidget.resizeColumnsToContents()# autofit the tableself.dlg.tableWidget.resizeRowsToContents()self.dlg.tableWidget.horizontalHeader().setStretchLastSection(True)The dialogsize is increased but the qtablewidget remains same. How can i increase the size of the table.
أكثر...