02-04-2013 05:09 PM
I have a context menu on a Label control, but I also want to have a button beside the label which executes the Label controls contextActions (open the context menu for the Label control). I find the press-and-hold is hard for users to discover at first and by having a button which opens the context menu on click, that makes the app more usable.
02-04-2013 05:32 PM - edited 02-04-2013 05:34 PM
There's an excellent sample on github - DialogSample. You'll need ContextMenuDialog.cpp / .hpp files from it.
It already has bindings for qml. Check main.qml for sample usage.
02-05-2013 12:53 AM