PythonQt.QtGui.QContextMenuEvent · declarations 001
Back to PythonQt.QtGui.QContextMenuEvent
Keyboard
instance-attribute
Keyboard: Any
Mouse
instance-attribute
Mouse: Any
Other
instance-attribute
Other: Any
Reason
instance-attribute
Reason: type
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
globalPos
globalPos() -> Any
X.globalPos() -> PythonQt.QtCore.QPoint
Supplemental documentation: Qt 5 reference:
const QPoint \&QContextMenuEvent::globalPos() const
Returns the global position of the mouse pointer at the time of the event.
Upstream PySide2 reference signatures (binding differences may apply):
globalPos(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qcontextmenuevent.html#globalPos
globalX
globalX() -> int
X.globalX() -> int
Supplemental documentation: Qt 5 reference:
int QContextMenuEvent::globalX() const
Returns the global x position of the mouse pointer at the time of the event.
See also globalY() and globalPos().
Upstream PySide2 reference signatures (binding differences may apply):
globalX(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qcontextmenuevent.html#globalX
globalY
globalY() -> int
X.globalY() -> int
Supplemental documentation: Qt 5 reference:
int QContextMenuEvent::globalY() const
Returns the global y position of the mouse pointer at the time of the event.
See also globalX() and globalPos().
Upstream PySide2 reference signatures (binding differences may apply):
globalY(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qcontextmenuevent.html#globalY
modifiers
modifiers() -> Any
X.modifiers()
pos
pos() -> Any
X.pos() -> PythonQt.QtCore.QPoint
Supplemental documentation: Qt 5 reference:
const QPoint \&QContextMenuEvent::pos() const
Returns the position of the mouse pointer relative to the widget that received the event.
See also x(), y(), and globalPos().
Upstream PySide2 reference signatures (binding differences may apply):
pos(self) -> PySide2.QtCore.QPoint
Source: https://doc.qt.io/archives/qt-5.15/qcontextmenuevent.html#pos
reason
reason() -> Any
X.reason()
Supplemental documentation: Qt 5 reference:
QContextMenuEvent::Reason QContextMenuEvent::reason() const
Returns the reason for this context event.
Upstream PySide2 reference signatures (binding differences may apply):
reason(self) -> PySide2.QtGui.QContextMenuEvent.Reason
Source: https://doc.qt.io/archives/qt-5.15/qcontextmenuevent.html#reason
setModifiers
setModifiers(amodifiers: Any) -> Any
X.setModifiers(amodifiers)
setTimestamp
setTimestamp(atimestamp: Any) -> Any
X.setTimestamp(atimestamp)
timestamp
timestamp() -> int
X.timestamp() -> int
x
x() -> int
X.x() -> int
Supplemental documentation: Qt 5 reference:
int QContextMenuEvent::x() const
Returns the x position of the mouse pointer, relative to the widget that received the event.
Upstream PySide2 reference signatures (binding differences may apply):
x(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qcontextmenuevent.html#x
y
y() -> int
X.y() -> int
Supplemental documentation: Qt 5 reference:
int QContextMenuEvent::y() const
Returns the y position of the mouse pointer, relative to the widget that received the event.
Upstream PySide2 reference signatures (binding differences may apply):
y(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qcontextmenuevent.html#y