Well, for the columns I tried many ways, with rolenames with rolenames equal as the ones i'd get if I create the table from c++ (as in the code in the original post), with titles, no titles, etc. None seems to work :/
TableView{
id: table;
width: parent.width -100
height: parent.height -200
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 90
model: eventModel.getTData(GData.tName, table);
TableViewColumn{
role:"time"
title:"time"
}
TableViewColumn{
role:"var1"
title:"var1"
}
TableViewColumn{
}
TableViewColumn{
role:"var3"
}
}
TableView{
id: table;
width: parent.width -100
height: parent.height -200
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
anchors.topMargin: 90
model: eventModel.getTData(GData.tName, table);
TableViewColumn{
role:"time"
title:"time"
}
TableViewColumn{
role:"var1"
title:"var1"
}
TableViewColumn{
}
TableViewColumn{
role:"var3"
}
}
To copy to clipboard, switch view to plain text mode
The table model is a plain QSqlTableModel, does the problem lie in there?, 'cause it seems to work just fine for a table created in c++
Capture.jpg
Bookmarks