PythonQt.QtCore.QEvent · declarations 001
Back to PythonQt.QtCore.QEvent
accept
accept() -> None
X.accept()
Supplemental documentation: Qt 5 reference:
void QEvent::accept()
Sets the accept flag of the event object, the equivalent of calling setAccepted(true).
Setting the accept parameter indicates that the event receiver wants the event. Unwanted events might be propagated to the parent widget.
See also ignore().
Upstream PySide2 reference signatures (binding differences may apply):
accept(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qevent.html#accept
ignore
ignore() -> None
X.ignore()
Supplemental documentation: Qt 5 reference:
void QEvent::ignore()
Clears the accept flag parameter of the event object, the equivalent of calling setAccepted(false).
Clearing the accept parameter indicates that the event receiver does not want the event. Unwanted events might be propagated to the parent widget.
See also accept().
Upstream PySide2 reference signatures (binding differences may apply):
ignore(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qevent.html#ignore
isAccepted
isAccepted() -> bool
X.isAccepted() -> bool
Upstream PySide2 reference signatures (binding differences may apply):
isAccepted(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qevent.html#isAccepted
registerEventType
registerEventType(hint: int) -> int
X.registerEventType(hint) -> int
Supplemental documentation: Qt 5 reference:
[static] int QEvent::registerEventType(int hint \= -1)
Registers and returns a custom event type. The hint provided will be used if it is available, otherwise it will return a value between QEvent::User and QEvent::MaxUser that has not yet been registered. The hint is ignored if its value is not between QEvent::User and QEvent::MaxUser.
Returns -1 if all available values are already taken or the program is shutting down.
Note: This function is thread-safe.
This function was introduced in Qt 4.4.
Upstream PySide2 reference signatures (binding differences may apply):
registerEventType(hint: int=...) -> int
Source: https://doc.qt.io/archives/qt-5.15/qevent.html#registerEventType
setAccepted
setAccepted(accepted: bool) -> None
X.setAccepted(accepted)
Upstream PySide2 reference signatures (binding differences may apply):
setAccepted(self, accepted: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qevent.html#setAccepted
spontaneous
spontaneous() -> bool
X.spontaneous() -> bool
Supplemental documentation: Qt 5 reference:
bool QEvent::spontaneous() const
Returns true if the event originated outside the application (a system event);
otherwise returns false.
The return value of this function is not defined for paint events.
Upstream PySide2 reference signatures (binding differences may apply):
spontaneous(self) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qevent.html#spontaneous
type
type() -> Any
X.type()
Supplemental documentation: Qt 5 reference:
QEvent::Type QEvent::type() const
Returns the event type.
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> PySide2.QtCore.QEvent.Type
Source: https://doc.qt.io/archives/qt-5.15/qevent.html#type