[Qt-qml] What does this model mean in the Repeater
Owen Zhao
owenzx at gmail.com
Wed May 4 04:14:21 CEST 2011
Hi,
I am learning the positioner and repeater of QML. I am a little confused on
the code below. Anyone could explain that to me? Thanks.
Grid {
>
> x: 5; y: 5
>
> rows: 8; columns: 8; spacing: 5
>
> Repeater {
>
> id: repeater
>
> model: {
>
> var board = [true]
>
> for (var i = 1; i < 64; ++i)
>
> board[i] = false;
>
> board;
>
> }
>
> ...
>
I normally see model: 64 but I do not know what the whole code above
meaning.
--
Owen Zhao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110504/f926d5fa/attachment.html
More information about the Qt-qml
mailing list