@SGaist Yes. I managed to do using a Grid, since it was not possible to make the tableview. Now I have my view, but i was looking at the GridView doc, but dont know... if is better keep the current code or try something different.
This is my actual qml code:
import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Window 2.2
ApplicationWindow {
visible: true
width: Screen.width /2
height: Screen.height /2
Grid {
id : tabuleiro
columns: 10
rows: 10
anchors.fill: parent
spacing : 1
Repeater {
delegate : Rectangle {
width: Math.min(tabuleiro.width, tabuleiro.height) / 10
height: width
color : isWater ? "blue" : "red";
}
model : myModel;
}
}
}