godi
3rd October 2011, 13:05
Hello,
I have a QTableWidget inside a QSplitter and I need the table sections to equally resize when the handle of the QSplitter is moved. This behavior can be achieved by setting a QLinearLayout to the splitter area where the table is and setting the resize mode QHeaderView::Stretch to the table header.
However, in this configuration the user cannot resize manually the width of the columns that is the other need I have.
Is there any way the user can resize manually the width of the columns while these columns are automatically resized when the handle of the splitter is moved?
Thanks is advance.
I have a QTableWidget inside a QSplitter and I need the table sections to equally resize when the handle of the QSplitter is moved. This behavior can be achieved by setting a QLinearLayout to the splitter area where the table is and setting the resize mode QHeaderView::Stretch to the table header.
However, in this configuration the user cannot resize manually the width of the columns that is the other need I have.
Is there any way the user can resize manually the width of the columns while these columns are automatically resized when the handle of the splitter is moved?
Thanks is advance.