[Qt-qml] QML Questions

Jason H scorp1us at yahoo.com
Fri Jul 9 15:09:50 CEST 2010


Thanks, the animation suggestion worked. But how can I have it always scroll to 
the complete height?
What is that expression that I need to use in the to:? I tried contentHeight.




----- 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