PDA

View Full Version : [QHeaderView] Resize width of verticalheader/ Resize height of horizontalheader ?



BrainB0ne
22nd January 2008, 15:41
Hello, :)

i'm fighting around with a problem, and i dont see the solution yet.
What i want to realize is to let the user resize the width of a verticalheader and the height of a horizontalheader.

Is that possible ?

I have a screenshot included. (red arrows are de direction of the resize, black arrows are the placed where i want to get the resize cursor).

http://i225.photobucket.com/albums/dd295/BrainB0ne/Qt%20Centre/resizeHeader.jpg

wysota
22nd January 2008, 15:55
Not out of the box. You'll have to handle mouse events yourself and modify the viewport margins that determine the size of each header. If that's not enough, then it will be required to reimplement resizeEvent for the widget as well.

BrainB0ne
22nd January 2008, 16:10
Not out of the box. You'll have to handle mouse events yourself and modify the viewport margins that determine the size of each header. If that's not enough, then it will be required to reimplement resizeEvent for the widget as well.

Ok thx, i already thought that there wasn't a ready to use solution available. Thx for your answer. :)