[Qt-qml] QML Questions
Jason H
scorp1us at yahoo.com
Fri Jul 9 08:14:41 CEST 2010
Thanks, I got something better, but still does not work.
ListView{
width: 1000
height: 700
anchors.fill: parent
model: visualModel
highlightFollowsCurrentItem: true
spacing: 10
NumberAnimation on visibleArea.yPosition {
from:0.0
to: 1.0
easing: Easing.Linear
duration: 10000
}
}
The message I get is yPosition is readOnly. But it is not marked as such in the
docs, and I think it would be super cool to have it as read-write so you can
auto scroll this stuff.
Is there a way to make my original list (with your corrections) just scroll like
credits at the end of a movie?
Oh, and I just installed http://get.qt.nokia.com/qtcreator/snapshots/latest/
(July 9 Windows) and it still has the "wrap: bool" documentation.
Thanks again!
----- Original Message ----
From: "michael.brasser at nokia.com" <michael.brasser at nokia.com>
To: scorp1us at yahoo.com
Cc: qt-qml at trolltech.com
Sent: Fri, July 9, 2010 12:17:00 AM
Subject: Re: [Qt-qml] QML Questions
Hi,
On 09/07/2010, at 1:50 PM, ext Jason H wrote:
> Awesome I got it working! It seems to work by magic that you can have it
> evaluate like that.
>
> The reason why I was trying "wrap: true" was because the docs told me to do
> it...
It sounds like you've got out-of-date docs. Are you building yourself, or using
the beta2 release? As far as I can tell the docs are correct at HEAD.
> Now, I've change the list view, and I think you can see what I am going for:
> ListView{
> width: 1000
> height: 700
> anchors.fill: parent
> model: visualModel
> highlightFollowsCurrentItem: true
> spacing: 10
> SequentialAnimation {
> NumberAnimation {
> properties: "visibleArea.yPosition"
> from:0
> to: 1
> }
> }
> }
> }
> But it won't do what I think it should. What do I need to do?
You probably want to use the "on" syntax -- see
http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeanimation.html#basic-property-animation.
If you truly do want a standalone animation object, you will need to also
specify a "target"
(http://doc.qt.nokia.com/4.7-snapshot/qml-propertyanimation.html#target-prop)
Regards,
Michael
More information about the Qt-qml
mailing list