[Interest] How to make a QAbstractViewer never display vertical scrollbar but expand its height?

Jonathan Greig redteam316 at gmail.com
Thu Nov 28 15:15:22 CET 2013


Clement,
I wouldn't say its expanding, but simply shows extra space or re-centers
itself inside the area. With QTreeView, it doesn't shift, but with
QGraphicsView and QMdiArea it does shift slightly.

- Swyped from my droid.

On Nov 28, 2013 7:07 AM, "Clément Geiger" <clement.geiger at gmail.com> wrote:

You might be able to do that with a QListView (using the protected method
QListView::contentSize()).

Otherwise I'm interested in the answer; I tried to do exactly the same
(multiple views in a scrollable container) a while ago and finally gave up.


2013/11/28 Jonathan Greig <redteam316 at gmail.com>
>
> Is this what you are needing?
>
> QAbstractScro...
With that there won't be scrollbars but the viewport won't expand. Am I
right ?

>
> - Swyped from my droid.
>>
>> On Nov 28, 2013 6:40 AM, "Philipp Kursawe" <phil.kursawe at gmail.com...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131128/a107993a/attachment.html>


More information about the Interest mailing list