[Qt-qml] QML Questions

Jason H scorp1us at yahoo.com
Fri Jul 9 16:37:44 CEST 2010


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: "bea.lam at nokia.com" <bea.lam at nokia.com>
To: scorp1us at yahoo.com
Cc: michael.brasser at nokia.com; qt-qml at trolltech.com
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


      




More information about the Qt-qml mailing list