java.lang.Object
io.qt.QtObject
io.qt.core.QEvent
io.qt.gui.QInputEvent
io.qt.gui.QContextMenuEvent
- All Implemented Interfaces:
QtObjectInterface
Contains parameters that describe a context menu event
Java wrapper for Qt class QContextMenuEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.core.QEvent
QEvent.Type
-
Field Summary
Fields inherited from class io.qt.core.QEvent
staticMetaObject
-
Constructor Summary
ModifierConstructorDescriptionprotected
QContextMenuEvent
(QContextMenuEvent arg__1) QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos) QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos) Overloaded constructor forQContextMenuEvent(io.qt.gui.QContextMenuEvent.Reason, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.KeyboardModifiers)
withmodifiers = new io.qt.core.Qt.KeyboardModifiers(0)
.QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifier ... modifiers) QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifiers modifiers) -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
assign
(QContextMenuEvent other) SeeQContextMenuEvent::
operator=(QContextMenuEvent) clone()
final QPoint
final int
globalX()
final int
globalY()
final QPoint
pos()
final QContextMenuEvent.Reason
reason()
protected final void
set
(QContextMenuEvent other) Deprecated.final int
x()
final int
y()
Methods inherited from class io.qt.gui.QInputEvent
assign, device, deviceType, modifiers, set, setDevice, setModifiers, setModifiers, setTimestamp, timestamp
Methods inherited from class io.qt.core.QEvent
accept, assign, ignore, isAccepted, isInputEvent, isPointerEvent, isSinglePointEvent, registerEventType, registerEventType, set, setAccepted, spontaneous, toString, type
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QContextMenuEvent
-
QContextMenuEvent
-
QContextMenuEvent
public QContextMenuEvent(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifiers modifiers) -
QContextMenuEvent
Overloaded constructor for
QContextMenuEvent(io.qt.gui.QContextMenuEvent.Reason, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.KeyboardModifiers)
withmodifiers = new io.qt.core.Qt.KeyboardModifiers(0)
. -
QContextMenuEvent
public QContextMenuEvent(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifier ... modifiers)
-
-
Method Details
-
globalPos
-
globalX
-
globalY
-
assign
See
QContextMenuEvent::
operator=(QContextMenuEvent) -
pos
-
reason
-
x
-
y
-
clone
This function was introduced in Qt 6.0.
- Overrides:
clone
in classQInputEvent
-
set
Deprecated.Useassign(io.qt.gui.QContextMenuEvent)
instead.
-
assign(io.qt.gui.QContextMenuEvent)
instead.