[Qt-qml] "Hello World" C++ Model on QML Flow?

michael.brasser at nokia.com michael.brasser at nokia.com
Mon Oct 11 08:39:02 CEST 2010


Hi,

On 11/10/2010, at 12:40 AM, ext Charley Bay wrote:
>> What is QML Flow? Do you mean ListView?
> 
> I should have clarified, "QML Flow element":
> 
> <http://doc.qt.nokia.com/4.7/qml-flow.html>
> 
> Funny you should say that -- I wanted Flow, didn't
> know it existed, started to write my own, then found
> that it was *included* in the standard library!  ;-)
> 
> Anyway, I don't have it working yet, but I'm a lot closer
> now.  (It's a lot of work re-wiring my brain for QML, but
> I think it's worth it.)
> 
> Part of my problem was that I misunderstood -- ListView
> is a "view" element (like GridView and PathView), but
> "Flow" is a "positioning" element (like Grid, Row, and
> Column).  So, my misunderstanding was attempting
> to treat a "positioner" like a "view".

If you haven't seen it yet, http://doc.qt.nokia.com/4.7/qml-positioners.html gives a brief overview of the standard way to display items from a model in a positioner, using Repeater.

Regards,
Michael





More information about the Qt-qml mailing list