Skip to content
Discussion options

You must be logged in to vote

You can use the x and y properties to position elements that are not in a layout.

Example:

   for index in 64: Rectangle {
        background: mod(mod(index, 8) + (index / 8), 2) == 0 ? #FFDEAD : #CD853F;
        width: size * 0.111px;
        height: size * 0.111px;
        x: width * mod(index, 8);
        y: height * floor(index/8);
    }

demo

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@loloof64
Comment options

Answer selected by loloof64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants