QML TapHandler onLongPress get position coordinates

Viewed 239

I'm trying to show the context menu in a position where a user touched a screen with long-press. I found the TapHandler signal longPress that looks like its going to solve my problem, but it doesn't have any input parameters like eventPoint:

TapHandler {
  onLongPressed: {
    if (Qt.platform.os == "android" || Qt.platform.os == "ios") {
      // contextMenu.x = eventPoint.position.x 
      // contextMenu.y = eventPoint.position.y
      contextMenu.open()
    }
  }
}

Any suggestions or ideas?

1 Answers
Related