Hi. I have a QSplitter widget separating two QTableWidget instances.
I want each table to stretch to its area's dimension. Meaning I want the tables to occupy all the space available to them.
How do I achieve that?

Qt Code:
  1. table1 = new QTableWidget(splitter);
  2. table2 = new QTableWidget(splitter);
  3. splitter->addWidget(table1);
  4. splitter->addWidget(table2);
To copy to clipboard, switch view to plain text mode 

When I pull the handle of the qsplitter, I want the tables to stay stretched to maximum, just like the emails table does in thunderbird.