Results 1 to 2 of 2

Thread: Scrool bar in treeWidget not properly shown?

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question Scrool bar in treeWidget not properly shown?

    Hi All,

    I m using qt 4.1.5 on my MAC.
    I have a treeWidget In which i have horizontal scrollbar but when i resize the scrollbar doesnot look very good.Actually it shows some contents under it.

    chaek the attachment.

    Thanks.
    Attached Images Attached Images

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Scrool bar in treeWidget not properly shown?

    Unfortunately you can't resize a scrollbar just like that. QAbstractScrollArea (yes, QTreeWidget is a QAbstractScrollArea) expects scrollbars to be of certain size while managing them. One proper way to do it would be to use a proxy style, reimplement QStyle::pixelMetric() and return something custom for QStyle::PM_ScrollBarExtent.
    J-P Nurmi

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.