[Interest] Qt Quick 2.0 Desktop Components ScollBar

Bache-Wiig Jens Jens.Bache-Wiig at digia.com
Fri Mar 1 19:14:06 CET 2013


> Hi,
> 
> thanks, but the following code does not work:
> 
> import QtQuick 2.0
> import QtDesktop 1.0 as Desktop
> 
> Rectangle {
>  width: 360
>  height: 360
> 
>  Desktop.ScrollArea {
>    anchors.fill: parent
>    ListView {
>      anchors.fill: parent
>      model: 10
>      delegate: Text { text: modelData }
>    }
>  }
> }
> 
> I'm quite a bit behind (0ab3b717e97b5f03f5964b6b5629c7a87bc45a43)
> because I have not yet
> updated to Qt 5.1 (dev). So ScrollView is still named ScrollArea here.
> Is that supposed to work nevertheless?
> 
> Thanks!
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

I am afraid not. The flickable support was added after the project moved to 5.1, so you would have to manually copy/backport the ScrollView related files to make this work in your older branch. This is doable as there are no hard 5.1 dependencies in ScrollView itself but it will probably require a little bit of work.

Regards,
Jens


More information about the Interest mailing list