[Qt-qml] More QML Questions

michael.brasser at nokia.com michael.brasser at nokia.com
Mon Jul 12 05:56:15 CEST 2010


On 11/07/2010, at 11:05 AM, ext Jason H wrote:
> I've been playing around with this, and I have several more questions:
> 
> 1.  Is there a Video element? Major bummer if there isn't

Yes, qt-mobility includes SoundEffect, Audio, and Video elements.

> 2. I've been trying to get a ListView to scroll when using an XML model. I can't 
> figure out how to do it. I'm using contentY, but I cannot set it to stop at 
> contentHeight, and that's the problem. Using a fixed number works, using 
> 'contentHeight' I think the contentHeight is undef or 0 at start, the model 
> loads, and there is no way to trigger the start of the animation. So I think XML 
> models need a signal that emits when loading is complete. This could then be 
> used to start animations.

The status property (http://doc.qt.nokia.com/4.7-snapshot/qml-xmllistmodel.html#status-prop) gives the current status of the model; you can use onStatusChanged to watch for changes to this property (and trigger the animation when status becomes XmlListModel.Ready)

Regards,
Michael



More information about the Qt-qml mailing list