So I dug more into it and got this:
ListView{ 
        id: lv
        width: 1000
        height: 700
        anchors.fill: parent
        model: visualModel
        spacing: 10
        NumberAnimation    on contentY {
            from: 0
            to: contentHeight
            duration: 10000
            easing: Easing.Linear
        }
    }
However I get 2 messages:
Unable to assign double to QEasingCurve // easing: Easing.Linea
Unable to assign [undefined] to double to // to: contentHeight  

TIA!

----- Original Message ----
From: "[email protected]" <[email protected]>
To: [email protected]
Cc: [email protected]; [email protected]
Sent: Fri, July 9, 2010 3:17:14 AM
Subject: Re: [Qt-qml] QML Questions

Hi Jason,

To scroll a flickable, change the contentY property.

E.g. change

>            NumberAnimation    on visibleArea.yPosition {
>                from:0.0
>                to: 1.0
>                easing: Easing.Linear
>                duration: 10000
>            }
>    }

to something like:

       NumberAnimation on contentY {
           to: 500
           easing: Easing.Linear
           duration: 1000
       }


> 
> The message I get is yPosition is readOnly. But it is not marked as such in 
>the  
>
> 

Ah, that's a bug, will have look at that.

Also if you are interested in the latest QML docs, you can find the 
auto-generated docs at http://doc.qt.nokia.com/4.7-snapshot/.


regards,

Bea


      

_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to