ContextMenuAtItem¶
helper to open a MenuFlyout from item + mouse.
import QWinUI3.Extras · src/extras/QWinUI3/Extras/ContextMenuAtItem.qml
Category: Input & forms · Library: v2.80
Extends QtObject.
Notes¶
Right-click often comes from a MouseArea inside a grid/list delegate. This helper uses item.mapToGlobal(mouse.x, mouse.y) to get global coordinates.
API¶
Properties¶
| Name | Type | Description |
|---|---|---|
menu |
var |
MenuFlyout to open. |
overlay |
Item |
Optional overlay host; default uses menu.popupAtGlobal() overlay resolution. |
Signals¶
No custom signals (use inherited signals from the base type).
Methods¶
| Signature | Description |
|---|---|
showAtItem(targetItem, mouse) |
— |
Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.