QML TableView - format column based on the content
Unsolved
QML and Qt Quick
-
Hello Forum!
I have a QML TableView with 3 TableViewColumn elements and a model which contains together with some strings 2 boolean values.
http://doc.qt.io/qt-5/qml-qtquick-controls-tableview.htmlI would like to change depending on the boolean values the text color, cell background or maybe the font.
The TableViewColumn element doesn't deliver anything for formating.
http://doc.qt.io/qt-5/qml-qtquick-controls-tableviewcolumn.htmlThe rowDelegate or itemDelegate is made for this. But I seem to have there no access to the roles and hence not to the boolean values of the elements in the row.
Is there even a solution for formating depending on the content?
Target: Windows Desktop.
Thanks for any kind of hints...
QtHelex