I have a simple TableView
with 4 TableViewColumns
, I'm not usually working with qml, so I'm not really sure how to work properly inside this code.
What I want is that I need a mouse-over the TableView
headers (column names). I checked all over and did not found any of a certain simple solution to my problem.
I have tried to use a tool-tip inside the TableVIewColumn
but it never shows up, and I have seen that Mouse Area is not supported inside the TableViewColumn
. Maybe the solution is simple but I am not aware of it for
the moment.
Rectangle {
width: parent.width
height: parent.height
TableView {
id: table
width: parent.width
height: parent.height
headerVisible: true
TableViewColumn {
id: time
role: "t-stamp"
title: "Time"
width: 60
}
TableViewColumn {
id: d
role: "id"
title: "SignId"
width: 40
}
TableViewColumn {
id: sid
role: "s-id"
title: "StratId"
width: 50
}
TableViewColumn {
id: stratname
role: "strat_name"
title: "StratName"
width: 200
}
Connections{
target: MessageTabelModel
onUpdateView:{
table.resizeColumnsToContents()
}
}
model: MessageTabelModel
}
}