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 <redteam...@gmail.com>

> Is this what you are needing?
>
> QAbstractScrollArea:: setVerticalScrollBarPolicy( Qt:: ScrollBarAlwaysOff )
>
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.kurs...@gmail.com> wrote:
>
> Is there a way to change the behaviour of a view to expand its height
> instead of displaying a toolbar to make all items visible? I would like the
> parent container to be scrollable, because it contains multiple listviews
> in a vertical layout.
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to