I am trying to change the TableView highlight color from the system's default color to say red. Can this be done without editing the rowDelegate? Also I tried changing the highlightedTextColor but this didn't do anything.
Asked
Active
Viewed 1,097 times
1
-
I don't think that's possible for now with `TableView` based on the documentation – koopajah Mar 27 '14 at 16:51
1 Answers
0
TableView {
rowDelegate: Rectangle {
SystemPalette {
id: systemPalette
colorGroup: SystemPalette.Active
}
color: {
var baseColor = styleData.alternate ? systemPalette.alternateBase : systemPalette.base
return styleData.selected ? "your-color-here"/*systemPalette.highlight*/ : baseColor
}
}
}

roberto.buratti
- 2,487
- 1
- 16
- 10