Hi !

Here is what I am trying to do: I have a QTreeView with two columns. The first one is the important one, the second one the not-so-important one. I'd like to have my first column automatically resized when the treeView is resized and the second one to be resizable by hand.
Qt Code:
  1. items = new QTreeView();
  2. items->setModel(itemsModel);
  3. QHeaderView * header = items->header();
  4. header->setStretchLastSection(false);
  5. header->setResizeMode(0, QHeaderView::Stretch);
  6. header->setResizeMode(1, QHeaderView::Interactive);
To copy to clipboard, switch view to plain text mode 

The issue is that the zone I have to click on to resize a column is on the right. The QTreeView being on the right edge of the window, clicking on the column separator at the end of the last column becomes quite a challenge, and the movement is not intuitive (you have to move the cursor out of the window to the right to have the left side of the column move to the left). I'd like to be able to resize the last column by clicking on the separator present between the two columns.

Is it possible to move the resize handle on the left side of the column ? Is there a better way to do that ?

Thanks in advance