Results 1 to 13 of 13

Thread: QTreeWidget + ScrollBar

  1. #1
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default QTreeWidget + ScrollBar

    Hi everybody!

    QT:4.1.1
    Compiler: MINGW
    OS: WINXP PRO

    I am using a Tree Widget for showing some tables from a Database. The Vertical Scroll Bar is Working fine (if is necessary it appears automaticaly), but the horizontal one not.( the scrollBar never appears).

    I am Working in the Designer and have for both the same Settings (default):

    verticalScrollBarPolicy: Qt::ScrollBarAsNeeded
    horizomtalScrollBarPolicy: Qt::Qt::ScrollBarAsNeeded
    autoScroll: auto

    Can somebody tell me why the horizontal Scrollbar never appears on my Tree?
    Think DigitalGasoline

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTreeWidget + ScrollBar

    Can somebody tell me why the horizontal Scrollbar never appears on my Tree?
    As far as I can see the horizontal scrollbar only appears when you drag beyond the first column of the tree widget.
    Could you try making it as small as posszible to see what happens?

    Cheers

  3. #3
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QTreeWidget + ScrollBar

    Hi Everall

    Here the result:
    Attached Images Attached Images
    Last edited by raphaelf; 15th March 2006 at 14:54.
    Think DigitalGasoline

  4. #4
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTreeWidget + ScrollBar

    there has been a bug filed in task tracker :

    103904 - QTreeWidget with 1 column never shows a horizontal scrollbar

    Scheduled for?
    4.2.0

    Description

    A QTreeWidget with 1 column never shows a horizontal scrollbar. A vertical scrollbar shows up when the items total height exceeds the widgets' height, but this never happens for a horizontal scrollbar, even though the policy is set to Qt::ScrollBarAsNeeded, the resizeMode to custom and the stretching of the last column to false.

    Update:
    Fixing this will change behavior that other customers are relying on. Will be fixed in Qt 4.2.

  5. #5
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QTreeWidget + ScrollBar

    Hi

    Ok, so i will have to wait..
    You dont know when this release will be downloadable?
    Think DigitalGasoline

  6. #6
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    99
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QTreeWidget + ScrollBar

    You dont know when this release will be downloadable?
    you could keep an eye on t ask tracker and use the latest snapshot when the bug is resolved.

    Cheers

  7. #7
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QTreeWidget + ScrollBar

    Guys dont forget that free windows version has some limitation
    a life without programming is like an empty bottle

  8. #8
    Join Date
    Jan 2006
    Location
    Lincoln, NE USA
    Posts
    177
    Thanks
    3
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: QTreeWidget + ScrollBar

    Quote Originally Posted by zlatko
    Guys dont forget that free windows version has some limitation

    Before I got a commercial license for Qt I was using the OpenSource version with MinGW, which worked fine against my PostgreSQL database. After I installed the commercial version I compiled against Oracle without changing the code (except for aggregate sum selects), and that worked fine also.

    Aside from lacking drivers for Oracle, SQL Sever, etc... what limitations would those be?:

  9. #9
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QTreeWidget + ScrollBar

    Its not limitation as such, but there is available some disagreeable bugs, that occasionally surface in different qt forums, and support only by free windows version
    a life without programming is like an empty bottle

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTreeWidget + ScrollBar

    Quote Originally Posted by zlatko
    Its not limitation as such, but there is available some disagreeable bugs, that occasionally surface in different qt forums, and support only by free windows version
    Are you talking about Qt 4 Open Source Edition or Q..3/Windows Free Edition?

  11. #11
    Join Date
    Jan 2006
    Location
    Ukraine,Lviv
    Posts
    454
    Thanks
    9
    Thanked 27 Times in 27 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: QTreeWidget + ScrollBar

    I mean Qt4 open source
    a life without programming is like an empty bottle

  12. #12
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTreeWidget + ScrollBar

    Quote Originally Posted by zlatko
    I mean Qt4 open source
    Do you have any examples of such bugs?

  13. #13
    Join Date
    Jan 2006
    Posts
    273
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: QTreeWidget + ScrollBar

    Hi everybody!!
    I am back again
    I have installed QT 4.1.3 on my Windows Machine..

    I have the same problem with my Scrollbar( just the horizontal one). Should this bug not be solved with QT 4.1.3?
    Please see my first post

    Trolltech:
    Qt Code:
    1. Fixed some drag and drop issues.
    2. Fixed a bug where the check state of an item was unchanged after an
    3. itemClicked() signal was emitted.
    4. Made decision to show scrollbars independent of the previous
    5. scrollbar state.
    6. Fixed a bug causing horizontal scrolling when only vertically
    7. scrolling should occur.
    8. Fixed painting of parent-child hierarchy decorations.
    9. Fixed scrollbar visibility bug.
    10. Fixed branch indicator painting error in right-to-left mode.
    11. Fixed painting issues when using reverse layout on hidden headers.
    12. Fixed a bug preventing the view from being scrolled when column 0 was
    13. hidden.
    14. Fixed a bug causing some custom index widgets to be incorrectly
    15. placed.
    To copy to clipboard, switch view to plain text mode 
    Think DigitalGasoline

Similar Threads

  1. Scrollbar not working fine way
    By santosh.kumar in forum Qt Programming
    Replies: 0
    Last Post: 15th April 2008, 04:58
  2. ScrollBar inside QTreeWidget is Blurring on Scrolling
    By santosh.kumar in forum Qt Programming
    Replies: 0
    Last Post: 11th April 2008, 14:33
  3. Scrollbar in QTreeWidget
    By sabeesh in forum Qt Programming
    Replies: 3
    Last Post: 23rd August 2007, 09:48
  4. GraphicsView/GraphicsScene: scrollbar policy Qt::ScrollBarAsNeeded
    By Pieter from Belgium in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2007, 13:15
  5. resizing a QTreeWidget
    By drhex in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2006, 22:32

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.