but in MouseArea in row delegate styleData.row - available
following code show right click menu for row in place where mouse clicked
rowDelegate: Rectangle {
id: rdRow
height: 30
MouseArea {
id: maRow
anchors.fill: parent
acceptedButtons: Qt.RightButton
onClicked: {
console.log("right click on row", styleData.row, mouseX,
mouseY, tvMain.flickableItem.contentY)
if ((styleData.row || (styleData.row === 0))
&& (mouse.button === Qt.RightButton)) {
currentRowIdxForMenu = styleData.row
cmRow.x = mouseX
cmRow.y = mouseY + styleData.row * rdRow.height
- tvMain.flickableItem.contentY
cmRow.open()
}
}
}
}