PDA

View Full Version : QTreeWidget + ScrollBar



raphaelf
15th March 2006, 10:42
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? :o

Everall
15th March 2006, 15:34
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

raphaelf
15th March 2006, 15:51
Hi Everall

Here the result:

Everall
15th March 2006, 15:51
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.

raphaelf
15th March 2006, 15:57
Hi :o

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

Everall
15th March 2006, 16:00
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

zlatko
16th March 2006, 17:50
Guys dont forget that free windows version has some limitation :mad:

GreyGeek
16th March 2006, 18:24
Guys dont forget that free windows version has some limitation :mad:


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?:

zlatko
17th March 2006, 11:43
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 :D

jacek
17th March 2006, 11:51
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 :D
Are you talking about Qt 4 Open Source Edition or Q..3/Windows Free Edition?

zlatko
17th March 2006, 13:53
I mean Qt4 open source

jacek
17th March 2006, 14:01
I mean Qt4 open source
Do you have any examples of such bugs?

raphaelf
1st June 2006, 21:53
Hi everybody!!
I am back again :p
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 :crying:

Trolltech:


- QTreeView
Fixed some drag and drop issues.
Fixed a bug where the check state of an item was unchanged after an
itemClicked() signal was emitted.
Made decision to show scrollbars independent of the previous
scrollbar state.
Fixed a bug causing horizontal scrolling when only vertically
scrolling should occur.
Fixed painting of parent-child hierarchy decorations.
Fixed scrollbar visibility bug.
Fixed branch indicator painting error in right-to-left mode.
Fixed painting issues when using reverse layout on hidden headers.
Fixed a bug preventing the view from being scrolled when column 0 was
hidden.
Fixed a bug causing some custom index widgets to be incorrectly
placed.