qml create TableView columns dynamically
Unsolved
QML and Qt Quick
-
hi, i'm using qt 6 and i tried the ways that i've found but didn't work
https://forum.qt.io/topic/131139/when-qml-tableview-dynamically-creates-columns-expected-token-numeric-literal-appears (i tried it and i had the same problem)
and i used Repeater and it doesn't work yet because i get an error ):
Repeater { model: ["name", "color"] delegate: TableModelColumn { display: model } }
the error:
Cannot assign object to list property "columns"what can i do?
thanks in advance