PythonQt.QtGui.QApplication · declarations 002
Back to PythonQt.QtGui.QApplication
eventDispatcher
eventDispatcher() -> Any
X.eventDispatcher()
exec
exec() -> int
X.exec() -> int
Supplemental documentation: Qt 5 reference:
[static] int QApplication::exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to exit() (which is 0 if exit() is called via quit()).
It is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets.
Generally, no user interaction can take place before calling exec(). As a special case, modal widgets like QMessageBox can be used before calling exec(), because modal widgets call exec() to start a local event loop.
To make your application perform idle processing, i.e., executing a special function whenever there are no pending events, use a QTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().
We recommend that you connect clean-up code to the
aboutToQuit()
signal, instead of putting it in your application's main() function. This is because,
on some platforms the QApplication::exec() call may not return. For example, on the
Windows platform, when the user logs off, the system terminates the process after Qt
closes all top-level windows. Hence, there is no guarantee that the application will
have time to exit its event loop and execute code at the end of the main() function,
after the QApplication::exec() call.
See also quitOnLastWindowClosed, QCoreApplication::quit(), QCoreApplication::exit(), QCoreApplication::processEvents(), and QCoreApplication::exec().
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#exec
exit
exit(retcode: Any) -> Any
X.exit(retcode)
flush
flush() -> Any
X.flush()
focusChanged
focusChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.focusChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QApplication::focusChanged(QWidget *old, QWidget *now)
This signal is emitted when the widget that has keyboard focus changed from old to
now, i.e., because the user pressed the tab-key, clicked into a widget or changed the
active window. Both old and now can be nullptr.
The signal is emitted after both widget have been notified about the change through QFocusEvent.
This function was introduced in Qt 4.1.
See also QWidget::setFocus(), QWidget::clearFocus(), and Qt::FocusReason.
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#focusChanged
focusObject
focusObject() -> Any
X.focusObject() -> PythonQt.private.QObject
focusObjectChanged
focusObjectChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.focusObjectChanged; argument details are not documented.
focusWidget
focusWidget() -> Any
X.focusWidget() -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
[static] QWidget *QApplication::focusWidget()
Returns the application widget that has the keyboard input focus, or nullptr if no
widget in this application has the focus.
See also QWidget::setFocus(), QWidget::hasFocus(), activeWindow(), and focusChanged().
Upstream PySide2 reference signatures (binding differences may apply):
focusWidget() -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#focusWidget
focusWindow
focusWindow() -> Any
X.focusWindow() -> PythonQt.QtGui.QWindow
focusWindowChanged
focusWindowChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.focusWindowChanged; argument details are not documented.
font
font(arg__1: Any) -> Any
X.font(arg__1) -> PythonQt.QtGui.QFont
Supplemental documentation: Qt 5 reference:
[static] QFont QApplication::font()
Returns the default application font.
See also setFont(), fontMetrics(), and QWidget::font().
[static] QFont QApplication::font(const QWidget *widget)
This is an overloaded function.
Returns the default font for the widget. If a default font was not registered for the widget's class, it returns the default font of its nearest registered superclass.
See also fontMetrics(), setFont(), and QWidget::setFont().
[static] QFont QApplication::font(const char *className)
This is an overloaded function.
Returns the font for widgets of the given className.
See also setFont() and QWidget::font().
Upstream PySide2 reference signatures (binding differences may apply):
font() -> PySide2.QtGui.QFont
font(arg__1: PySide2.QtWidgets.QWidget) -> PySide2.QtGui.QFont
font(className: str) -> PySide2.QtGui.QFont
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#font
fontChanged
fontChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.fontChanged; argument details are not documented.
fontDatabaseChanged
fontDatabaseChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.fontDatabaseChanged; argument details are not documented.
fontMetrics
fontMetrics() -> Any
X.fontMetrics() -> PythonQt.QtGui.QFontMetrics
Supplemental documentation: Qt 5 reference:
[static] QFontMetrics QApplication::fontMetrics()
Returns display (screen) font metrics for the application font.
See also font(), setFont(), QWidget::fontMetrics(), and QPainter::fontMetrics().
Upstream PySide2 reference signatures (binding differences may apply):
fontMetrics() -> PySide2.QtGui.QFontMetrics
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#fontMetrics
globalStrut
instance-attribute
globalStrut: QSize
hasPendingEvents
hasPendingEvents() -> bool
X.hasPendingEvents() -> bool
inputMethod
inputMethod() -> Any
X.inputMethod() -> PythonQt.QtGui.QInputMethod
installTranslator
installTranslator(messageFile: Any) -> bool
X.installTranslator(messageFile) -> bool
instance
instance() -> Any
X.instance() -> PythonQt.QtCore.QCoreApplication
isEffectEnabled
isEffectEnabled(arg__1: Any) -> bool
X.isEffectEnabled(arg__1) -> bool
Supplemental documentation: Qt 5 reference:
[static] bool QApplication::isEffectEnabled(Qt::UIEffect effect)
Returns true if effect is enabled; otherwise returns false.
By default, Qt will try to use the desktop settings. To prevent this, call setDesktopSettingsAware(false).
Note: All effects are disabled on screens running at less than 16-bit color depth.
See also setEffectEnabled() and Qt::UIEffect.
Upstream PySide2 reference signatures (binding differences may apply):
isEffectEnabled(arg__1: PySide2.QtCore.Qt.UIEffect) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#isEffectEnabled
isFallbackSessionManagementEnabled
isFallbackSessionManagementEnabled() -> bool
X.isFallbackSessionManagementEnabled() -> bool
isQuitLockEnabled
isQuitLockEnabled() -> bool
X.isQuitLockEnabled() -> bool
isSavingSession
isSavingSession() -> bool
X.isSavingSession() -> bool
isSessionRestored
isSessionRestored() -> bool
X.isSessionRestored() -> bool
isSetuidAllowed
isSetuidAllowed() -> bool
X.isSetuidAllowed() -> bool
keyboardInputInterval
instance-attribute
keyboardInputInterval: int
Qt 5 reference:
keyboardInputInterval : int
This property holds the time limit in milliseconds that distinguishes a key press from two consecutive key presses
The default value on X11 is 400 milliseconds. On Windows and Mac OS, the operating system's value is used.
This property was introduced in Qt 4.2.
Access functions:
| int | keyboardInputInterval() |
|---|---|
| void | setKeyboardInputInterval(int) |
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#keyboardInputInterval
keyboardModifiers
keyboardModifiers() -> Any
X.keyboardModifiers()
lastWindowClosed
lastWindowClosed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.lastWindowClosed; argument details are not documented.
layoutDirectionChanged
layoutDirectionChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.layoutDirectionChanged; argument details are not documented.
libraryPaths
libraryPaths() -> tuple
X.libraryPaths() -> tuple
modalWindow
modalWindow() -> Any
X.modalWindow() -> PythonQt.QtGui.QWindow
mouseButtons
mouseButtons() -> Any
X.mouseButtons()
notify
notify(arg__1: Any, arg__2: Any) -> bool
X.notify(arg__1, arg__2) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QApplication::notify(QObject *receiver, QEvent *e)
Reimplements: QGuiApplication::notify(QObject *object, QEvent *event).
Upstream PySide2 reference signatures (binding differences may apply):
notify(self, arg__1: PySide2.QtCore.QObject, arg__2: PySide2.QtCore.QEvent) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#notify
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.objectNameChanged; argument details are not documented.
organizationDomain
instance-attribute
organizationDomain: Any
organizationDomainChanged
organizationDomainChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.organizationDomainChanged; argument details are not documented.
organizationName
instance-attribute
organizationName: Any
organizationNameChanged
organizationNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QApplication.organizationNameChanged; argument details are not documented.
overrideCursor
overrideCursor() -> Any
X.overrideCursor() -> PythonQt.QtGui.QCursor
palette
palette(arg__1: Any) -> Any
X.palette(arg__1) -> PythonQt.QtGui.QPalette
Supplemental documentation: Qt 5 reference:
[static] QPalette QApplication::palette(const QWidget *widget)
If a widget is passed, the default palette for the widget's class is returned. This may or may not be the application palette. In most cases there is no special palette for certain types of widgets, but one notable exception is the popup menu under Windows, if the user has defined a special background color for menus in the display settings.
See also setPalette() and QWidget::palette().
[static] QPalette QApplication::palette(const char *className)
This is an overloaded function.
Returns the palette for widgets of the given className.
See also setPalette() and QWidget::palette().
Upstream PySide2 reference signatures (binding differences may apply):
palette() -> PySide2.QtGui.QPalette
palette(arg__1: PySide2.QtWidgets.QWidget) -> PySide2.QtGui.QPalette
palette(className: str) -> PySide2.QtGui.QPalette
Source: https://doc.qt.io/archives/qt-5.15/qapplication.html#palette