Results 1 to 3 of 3

Thread: [QHeaderView] Resize width of verticalheader/ Resize height of horizontalheader ?

  1. #1
    Join Date
    Jan 2006
    Location
    Netherlands
    Posts
    56
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question [QHeaderView] Resize width of verticalheader/ Resize height of horizontalheader ?

    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).

    ..:: Still Standing Strong ::..

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: [QHeaderView] Resize width of verticalheader/ Resize height of horizontalheader ?

    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.

  3. The following user says thank you to wysota for this useful post:

    BrainB0ne (22nd January 2008)

  4. #3
    Join Date
    Jan 2006
    Location
    Netherlands
    Posts
    56
    Thanks
    10
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: [QHeaderView] Resize width of verticalheader/ Resize height of horizontalheader ?

    Quote Originally Posted by wysota View Post
    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.
    ..:: Still Standing Strong ::..

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.