Qt 6.12 LTS is out! See what's new in the release
blog
Qt Quick 6.9+ ContextMenu on Android - does it work?
-
Another stumbling block for a seemingly basic task: is there a way to use my own context menu on Android?
If the documentation says:
The
ContextMenuattached type provides a way to open a context menu in a platform-appropriate manner,then why doesn’t this work?
import QtQuick import QtQuick.Window import QtQuick.Controls ApplicationWindow { visible: true width: 360 height: 520 Rectangle { width: 200 height: 200 color: "red" ContextMenu.menu: Menu { MenuItem { text: "Option 1" } } } }I'm assuming that long tap on the red square should show me the context menu, but it doesn't happen.
—
Android 15+