KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QApplication

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QApplication

Class hierarchy: QApplication » QGuiApplication » QCoreApplication » QObject

Public constructors

new QApplication ptrnew(string[] argv,
bool gui = true)
Creates a new QApplication object

Public methods

[const]QApplication ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
[signal]voidaboutToQuitSignal declaration for QApplication::aboutToQuit()
[signal]voidapplicationDisplayNameChangedSignal declaration for QApplication::applicationDisplayNameChanged()
[signal]voidapplicationNameChangedSignal declaration for QApplication::applicationNameChanged()
[signal]voidapplicationStateChanged(const Qt_ApplicationState state)Signal declaration for QApplication::applicationStateChanged(Qt::ApplicationState state)
[signal]voidapplicationVersionChangedSignal declaration for QApplication::applicationVersionChanged()
[const]boolautoSipEnabledMethod bool QApplication::autoSipEnabled()
voidautoSipEnabled=(bool enabled)Method void QApplication::setAutoSipEnabled(const bool enabled)
[signal]voidcommitDataRequest(QSessionManager sessionManager)Signal declaration for QApplication::commitDataRequest(QSessionManager &sessionManager)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QApplication::destroyed(QObject *)
voidemit_aboutToQuitEmitter for signal void QApplication::aboutToQuit()
voidemit_applicationDisplayNameChangedEmitter for signal void QApplication::applicationDisplayNameChanged()
voidemit_applicationNameChangedEmitter for signal void QApplication::applicationNameChanged()
voidemit_applicationStateChanged(const Qt_ApplicationState state)Emitter for signal void QApplication::applicationStateChanged(Qt::ApplicationState state)
voidemit_applicationVersionChangedEmitter for signal void QApplication::applicationVersionChanged()
voidemit_commitDataRequest(QSessionManager sessionManager)Emitter for signal void QApplication::commitDataRequest(QSessionManager &sessionManager)
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QApplication::destroyed(QObject *)
voidemit_focusChanged(QWidget ptr old,
QWidget ptr now)
Emitter for signal void QApplication::focusChanged(QWidget *old, QWidget *now)
voidemit_focusObjectChanged(QObject ptr focusObject)Emitter for signal void QApplication::focusObjectChanged(QObject *focusObject)
voidemit_focusWindowChanged(QWindow ptr focusWindow)Emitter for signal void QApplication::focusWindowChanged(QWindow *focusWindow)
voidemit_fontChanged(const QFont font)Emitter for signal void QApplication::fontChanged(const QFont &font)
voidemit_fontDatabaseChangedEmitter for signal void QApplication::fontDatabaseChanged()
voidemit_lastWindowClosedEmitter for signal void QApplication::lastWindowClosed()
voidemit_layoutDirectionChanged(const Qt_LayoutDirection direction)Emitter for signal void QApplication::layoutDirectionChanged(Qt::LayoutDirection direction)
voidemit_objectNameChanged(string objectName)Emitter for signal void QApplication::objectNameChanged(const QString &objectName)
voidemit_organizationDomainChangedEmitter for signal void QApplication::organizationDomainChanged()
voidemit_organizationNameChangedEmitter for signal void QApplication::organizationNameChanged()
voidemit_paletteChanged(const QPalette pal)Emitter for signal void QApplication::paletteChanged(const QPalette &pal)
voidemit_primaryScreenChanged(QScreen ptr screen)Emitter for signal void QApplication::primaryScreenChanged(QScreen *screen)
voidemit_saveStateRequest(QSessionManager sessionManager)Emitter for signal void QApplication::saveStateRequest(QSessionManager &sessionManager)
voidemit_screenAdded(QScreen ptr screen)Emitter for signal void QApplication::screenAdded(QScreen *screen)
voidemit_screenRemoved(QScreen ptr screen)Emitter for signal void QApplication::screenRemoved(QScreen *screen)
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QApplication::eventFilter(QObject *watched, QEvent *event)
[signal]voidfocusChanged(QWidget ptr old,
QWidget ptr now)
Signal declaration for QApplication::focusChanged(QWidget *old, QWidget *now)
[signal]voidfocusObjectChanged(QObject ptr focusObject)Signal declaration for QApplication::focusObjectChanged(QObject *focusObject)
[signal]voidfocusWindowChanged(QWindow ptr focusWindow)Signal declaration for QApplication::focusWindowChanged(QWindow *focusWindow)
[signal]voidfontChanged(const QFont font)Signal declaration for QApplication::fontChanged(const QFont &font)
[signal]voidfontDatabaseChangedSignal declaration for QApplication::fontDatabaseChanged()
[signal]voidlastWindowClosedSignal declaration for QApplication::lastWindowClosed()
[signal]voidlayoutDirectionChanged(const Qt_LayoutDirection direction)Signal declaration for QApplication::layoutDirectionChanged(Qt::LayoutDirection direction)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QApplication::objectNameChanged(const QString &objectName)
[signal]voidorganizationDomainChangedSignal declaration for QApplication::organizationDomainChanged()
[signal]voidorganizationNameChangedSignal declaration for QApplication::organizationNameChanged()
[signal]voidpaletteChanged(const QPalette pal)Signal declaration for QApplication::paletteChanged(const QPalette &pal)
[signal]voidprimaryScreenChanged(QScreen ptr screen)Signal declaration for QApplication::primaryScreenChanged(QScreen *screen)
[signal]voidsaveStateRequest(QSessionManager sessionManager)Signal declaration for QApplication::saveStateRequest(QSessionManager &sessionManager)
[signal]voidscreenAdded(QScreen ptr screen)Signal declaration for QApplication::screenAdded(QScreen *screen)
[signal]voidscreenRemoved(QScreen ptr screen)Signal declaration for QApplication::screenRemoved(QScreen *screen)
voidsetAutoSipEnabled(bool enabled)Method void QApplication::setAutoSipEnabled(const bool enabled)
voidsetStyleSheet(string sheet)Method void QApplication::setStyleSheet(const QString &sheet)
[const]stringstyleSheetMethod QString QApplication::styleSheet()
voidstyleSheet=(string sheet)Method void QApplication::setStyleSheet(const QString &sheet)

Public static methods and constants

voidaboutQtStatic method void QApplication::aboutQt()
QWidget ptractiveModalWidgetStatic method QWidget *QApplication::activeModalWidget()
QWidget ptractivePopupWidgetStatic method QWidget *QApplication::activePopupWidget()
QWidget ptractiveWindowStatic method QWidget *QApplication::activeWindow()
voidactiveWindow=(QWidget ptr act)Static method void QApplication::setActiveWindow(QWidget *act)
voidalert(QWidget ptr widget,
int duration = 0)
Static method void QApplication::alert(QWidget *widget, int duration)
QWidget ptr[]allWidgetsStatic method QList<QWidget *> QApplication::allWidgets()
voidbeepStatic method void QApplication::beep()
voidcloseAllWindowsStatic method void QApplication::closeAllWindows()
intcolorSpecStatic method int QApplication::colorSpec()
voidcolorSpec=(int arg1)Static method void QApplication::setColorSpec(int)
intcursorFlashTimeStatic method int QApplication::cursorFlashTime()
voidcursorFlashTime=(int arg1)Static method void QApplication::setCursorFlashTime(int)
QDesktopWidget ptrdesktopStatic method QDesktopWidget *QApplication::desktop()
intdoubleClickIntervalStatic method int QApplication::doubleClickInterval()
voiddoubleClickInterval=(int arg1)Static method void QApplication::setDoubleClickInterval(int)
intexecStatic method int QApplication::exec()
QWidget ptrfocusWidgetStatic method QWidget *QApplication::focusWidget()
QFontfontStatic method QFont QApplication::font()
QFontfont(const QWidget ptr arg1)Static method QFont QApplication::font(const QWidget *)
QFontfont(string className)Static method QFont QApplication::font(const char *className)
QFontMetricsfontMetricsStatic method QFontMetrics QApplication::fontMetrics()
QSizeglobalStrutStatic method QSize QApplication::globalStrut()
voidglobalStrut=(const QSize arg1)Static method void QApplication::setGlobalStrut(const QSize &)
boolisEffectEnabled?(const Qt_UIEffect arg1)Static method bool QApplication::isEffectEnabled(Qt::UIEffect)
intkeyboardInputIntervalStatic method int QApplication::keyboardInputInterval()
voidkeyboardInputInterval=(int arg1)Static method void QApplication::setKeyboardInputInterval(int)
QPalettepaletteStatic method QPalette QApplication::palette()
QPalettepalette(const QWidget ptr arg1)Static method QPalette QApplication::palette(const QWidget *)
QPalettepalette(string className)Static method QPalette QApplication::palette(const char *className)
voidsetActiveWindow(QWidget ptr act)Static method void QApplication::setActiveWindow(QWidget *act)
voidsetColorSpec(int arg1)Static method void QApplication::setColorSpec(int)
voidsetCursorFlashTime(int arg1)Static method void QApplication::setCursorFlashTime(int)
voidsetDoubleClickInterval(int arg1)Static method void QApplication::setDoubleClickInterval(int)
voidsetEffectEnabled(const Qt_UIEffect arg1,
bool enable = true)
Static method void QApplication::setEffectEnabled(Qt::UIEffect, bool enable)
voidsetFont(const QFont arg1,
string className = nullptr)
Static method void QApplication::setFont(const QFont &, const char *className)
voidsetGlobalStrut(const QSize arg1)Static method void QApplication::setGlobalStrut(const QSize &)
voidsetKeyboardInputInterval(int arg1)Static method void QApplication::setKeyboardInputInterval(int)
voidsetPalette(const QPalette arg1,
string className = nullptr)
Static method void QApplication::setPalette(const QPalette &, const char *className)
voidsetStartDragDistance(int l)Static method void QApplication::setStartDragDistance(int l)
voidsetStartDragTime(int ms)Static method void QApplication::setStartDragTime(int ms)
voidsetStyle(QStyle ptr arg1)Static method void QApplication::setStyle(QStyle *)
QStyle ptrsetStyle(string arg1)Static method QStyle *QApplication::setStyle(const QString &)
voidsetWheelScrollLines(int arg1)Static method void QApplication::setWheelScrollLines(int)
voidsetWindowIcon(const QIcon icon)Static method void QApplication::setWindowIcon(const QIcon &icon)
intstartDragDistanceStatic method int QApplication::startDragDistance()
voidstartDragDistance=(int l)Static method void QApplication::setStartDragDistance(int l)
intstartDragTimeStatic method int QApplication::startDragTime()
voidstartDragTime=(int ms)Static method void QApplication::setStartDragTime(int ms)
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
QStyle ptrstyleStatic method QStyle *QApplication::style()
voidstyle=(QStyle ptr arg1)Static method void QApplication::setStyle(QStyle *)
QStyle ptrstyle=(string arg1)Static method QStyle *QApplication::setStyle(const QString &)
QWidget ptrtopLevelAt(const QPoint p)Static method QWidget *QApplication::topLevelAt(const QPoint &p)
QWidget ptrtopLevelAt(int x,
int y)
Static method QWidget *QApplication::topLevelAt(int x, int y)
QWidget ptr[]topLevelWidgetsStatic method QList<QWidget *> QApplication::topLevelWidgets()
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QApplication::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QApplication::trUtf8(const char *s, const char *c, int n)
intwheelScrollLinesStatic method int QApplication::wheelScrollLines()
voidwheelScrollLines=(int arg1)Static method void QApplication::setWheelScrollLines(int)
QWidget ptrwidgetAt(const QPoint p)Static method QWidget *QApplication::widgetAt(const QPoint &p)
QWidget ptrwidgetAt(int x,
int y)
Static method QWidget *QApplication::widgetAt(int x, int y)
QIconwindowIconStatic method QIcon QApplication::windowIcon()
voidwindowIcon=(const QIcon icon)Static method void QApplication::setWindowIcon(const QIcon &icon)

Protected methods (static, non-static and constructors)

voidchildEvent(QChildEvent ptr event)Virtual method void QApplication::childEvent(QChildEvent *event)
voidcustomEvent(QEvent ptr event)Virtual method void QApplication::customEvent(QEvent *event)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QApplication::disconnectNotify(const QMetaMethod &signal)
boolevent(QEvent ptr arg1)Virtual method bool QApplication::event(QEvent *)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QApplication::isSignalConnected(const QMetaMethod &signal)
[const]intreceivers(string signal)Method int QApplication::receivers(const char *signal)
[const]QObject ptrsenderMethod QObject *QApplication::sender()
[const]intsenderSignalIndexMethod int QApplication::senderSignalIndex()
voidtimerEvent(QTimerEvent ptr event)Virtual method void QApplication::timerEvent(QTimerEvent *event)

Detailed description

_const_cast

Signature: [const] QApplication ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

aboutQt

Signature: [static] void aboutQt

Description: Static method void QApplication::aboutQt()

This method is static and can be called without an instance.

aboutToQuit

Signature: [signal] void aboutToQuit

Description: Signal declaration for QApplication::aboutToQuit()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'aboutToQuit'. This is the getter.
The object exposes a writable attribute 'aboutToQuit'. This is the setter.

activeModalWidget

Signature: [static] QWidget ptr activeModalWidget

Description: Static method QWidget *QApplication::activeModalWidget()

This method is static and can be called without an instance.

activePopupWidget

Signature: [static] QWidget ptr activePopupWidget

Description: Static method QWidget *QApplication::activePopupWidget()

This method is static and can be called without an instance.

activeWindow

Signature: [static] QWidget ptr activeWindow

Description: Static method QWidget *QApplication::activeWindow()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'activeWindow'. This is the getter.

activeWindow=

Signature: [static] void activeWindow= (QWidget ptr act)

Description: Static method void QApplication::setActiveWindow(QWidget *act)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'activeWindow'. This is the setter.

alert

Signature: [static] void alert (QWidget ptr widget, int duration = 0)

Description: Static method void QApplication::alert(QWidget *widget, int duration)

This method is static and can be called without an instance.

allWidgets

Signature: [static] QWidget ptr[] allWidgets

Description: Static method QList<QWidget *> QApplication::allWidgets()

This method is static and can be called without an instance.

applicationDisplayNameChanged

Signature: [signal] void applicationDisplayNameChanged

Description: Signal declaration for QApplication::applicationDisplayNameChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'applicationDisplayNameChanged'. This is the getter.
The object exposes a writable attribute 'applicationDisplayNameChanged'. This is the setter.

applicationNameChanged

Signature: [signal] void applicationNameChanged

Description: Signal declaration for QApplication::applicationNameChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'applicationNameChanged'. This is the getter.
The object exposes a writable attribute 'applicationNameChanged'. This is the setter.

applicationStateChanged

Signature: [signal] void applicationStateChanged (const Qt_ApplicationState state)

Description: Signal declaration for QApplication::applicationStateChanged(Qt::ApplicationState state)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'applicationStateChanged'. This is the getter.
The object exposes a writable attribute 'applicationStateChanged'. This is the setter.

applicationVersionChanged

Signature: [signal] void applicationVersionChanged

Description: Signal declaration for QApplication::applicationVersionChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'applicationVersionChanged'. This is the getter.
The object exposes a writable attribute 'applicationVersionChanged'. This is the setter.

autoSipEnabled

Signature: [const] bool autoSipEnabled

Description: Method bool QApplication::autoSipEnabled()

Python specific notes:
The object exposes a readable attribute 'autoSipEnabled'. This is the getter.

autoSipEnabled=

Signature: void autoSipEnabled= (bool enabled)

Description: Method void QApplication::setAutoSipEnabled(const bool enabled)

Python specific notes:
The object exposes a writable attribute 'autoSipEnabled'. This is the setter.

beep

Signature: [static] void beep

Description: Static method void QApplication::beep()

This method is static and can be called without an instance.

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QApplication::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

closeAllWindows

Signature: [static] void closeAllWindows

Description: Static method void QApplication::closeAllWindows()

This method is static and can be called without an instance.

colorSpec

Signature: [static] int colorSpec

Description: Static method int QApplication::colorSpec()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'colorSpec'. This is the getter.

colorSpec=

Signature: [static] void colorSpec= (int arg1)

Description: Static method void QApplication::setColorSpec(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'colorSpec'. This is the setter.

commitDataRequest

Signature: [signal] void commitDataRequest (QSessionManager sessionManager)

Description: Signal declaration for QApplication::commitDataRequest(QSessionManager &sessionManager)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'commitDataRequest'. This is the getter.
The object exposes a writable attribute 'commitDataRequest'. This is the setter.

cursorFlashTime

Signature: [static] int cursorFlashTime

Description: Static method int QApplication::cursorFlashTime()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'cursorFlashTime'. This is the getter.

cursorFlashTime=

Signature: [static] void cursorFlashTime= (int arg1)

Description: Static method void QApplication::setCursorFlashTime(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'cursorFlashTime'. This is the setter.

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QApplication::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

desktop

Signature: [static] QDesktopWidget ptr desktop

Description: Static method QDesktopWidget *QApplication::desktop()

This method is static and can be called without an instance.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QApplication::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QApplication::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

doubleClickInterval

Signature: [static] int doubleClickInterval

Description: Static method int QApplication::doubleClickInterval()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'doubleClickInterval'. This is the getter.

doubleClickInterval=

Signature: [static] void doubleClickInterval= (int arg1)

Description: Static method void QApplication::setDoubleClickInterval(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'doubleClickInterval'. This is the setter.

emit_aboutToQuit

Signature: void emit_aboutToQuit

Description: Emitter for signal void QApplication::aboutToQuit()

Call this method to emit this signal.

emit_applicationDisplayNameChanged

Signature: void emit_applicationDisplayNameChanged

Description: Emitter for signal void QApplication::applicationDisplayNameChanged()

Call this method to emit this signal.

emit_applicationNameChanged

Signature: void emit_applicationNameChanged

Description: Emitter for signal void QApplication::applicationNameChanged()

Call this method to emit this signal.

emit_applicationStateChanged

Signature: void emit_applicationStateChanged (const Qt_ApplicationState state)

Description: Emitter for signal void QApplication::applicationStateChanged(Qt::ApplicationState state)

Call this method to emit this signal.

emit_applicationVersionChanged

Signature: void emit_applicationVersionChanged

Description: Emitter for signal void QApplication::applicationVersionChanged()

Call this method to emit this signal.

emit_commitDataRequest

Signature: void emit_commitDataRequest (QSessionManager sessionManager)

Description: Emitter for signal void QApplication::commitDataRequest(QSessionManager &sessionManager)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QApplication::destroyed(QObject *)

Call this method to emit this signal.

emit_focusChanged

Signature: void emit_focusChanged (QWidget ptr old, QWidget ptr now)

Description: Emitter for signal void QApplication::focusChanged(QWidget *old, QWidget *now)

Call this method to emit this signal.

emit_focusObjectChanged

Signature: void emit_focusObjectChanged (QObject ptr focusObject)

Description: Emitter for signal void QApplication::focusObjectChanged(QObject *focusObject)

Call this method to emit this signal.

emit_focusWindowChanged

Signature: void emit_focusWindowChanged (QWindow ptr focusWindow)

Description: Emitter for signal void QApplication::focusWindowChanged(QWindow *focusWindow)

Call this method to emit this signal.

emit_fontChanged

Signature: void emit_fontChanged (const QFont font)

Description: Emitter for signal void QApplication::fontChanged(const QFont &font)

Call this method to emit this signal.

emit_fontDatabaseChanged

Signature: void emit_fontDatabaseChanged

Description: Emitter for signal void QApplication::fontDatabaseChanged()

Call this method to emit this signal.

emit_lastWindowClosed

Signature: void emit_lastWindowClosed

Description: Emitter for signal void QApplication::lastWindowClosed()

Call this method to emit this signal.

emit_layoutDirectionChanged

Signature: void emit_layoutDirectionChanged (const Qt_LayoutDirection direction)

Description: Emitter for signal void QApplication::layoutDirectionChanged(Qt::LayoutDirection direction)

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QApplication::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_organizationDomainChanged

Signature: void emit_organizationDomainChanged

Description: Emitter for signal void QApplication::organizationDomainChanged()

Call this method to emit this signal.

emit_organizationNameChanged

Signature: void emit_organizationNameChanged

Description: Emitter for signal void QApplication::organizationNameChanged()

Call this method to emit this signal.

emit_paletteChanged

Signature: void emit_paletteChanged (const QPalette pal)

Description: Emitter for signal void QApplication::paletteChanged(const QPalette &pal)

Call this method to emit this signal.

emit_primaryScreenChanged

Signature: void emit_primaryScreenChanged (QScreen ptr screen)

Description: Emitter for signal void QApplication::primaryScreenChanged(QScreen *screen)

Call this method to emit this signal.

emit_saveStateRequest

Signature: void emit_saveStateRequest (QSessionManager sessionManager)

Description: Emitter for signal void QApplication::saveStateRequest(QSessionManager &sessionManager)

Call this method to emit this signal.

emit_screenAdded

Signature: void emit_screenAdded (QScreen ptr screen)

Description: Emitter for signal void QApplication::screenAdded(QScreen *screen)

Call this method to emit this signal.

emit_screenRemoved

Signature: void emit_screenRemoved (QScreen ptr screen)

Description: Emitter for signal void QApplication::screenRemoved(QScreen *screen)

Call this method to emit this signal.

event

Signature: bool event (QEvent ptr arg1)

Description: Virtual method bool QApplication::event(QEvent *)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr watched, QEvent ptr event)

Description: Virtual method bool QApplication::eventFilter(QObject *watched, QEvent *event)

This method can be reimplemented in a derived class.

exec

Signature: [static] int exec

Description: Static method int QApplication::exec()

This method is static and can be called without an instance.

Python specific notes:
This attribute is available as 'exec_' in Python.

focusChanged

Signature: [signal] void focusChanged (QWidget ptr old, QWidget ptr now)

Description: Signal declaration for QApplication::focusChanged(QWidget *old, QWidget *now)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'focusChanged'. This is the getter.
The object exposes a writable attribute 'focusChanged'. This is the setter.

focusObjectChanged

Signature: [signal] void focusObjectChanged (QObject ptr focusObject)

Description: Signal declaration for QApplication::focusObjectChanged(QObject *focusObject)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'focusObjectChanged'. This is the getter.
The object exposes a writable attribute 'focusObjectChanged'. This is the setter.

focusWidget

Signature: [static] QWidget ptr focusWidget

Description: Static method QWidget *QApplication::focusWidget()

This method is static and can be called without an instance.

focusWindowChanged

Signature: [signal] void focusWindowChanged (QWindow ptr focusWindow)

Description: Signal declaration for QApplication::focusWindowChanged(QWindow *focusWindow)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'focusWindowChanged'. This is the getter.
The object exposes a writable attribute 'focusWindowChanged'. This is the setter.

font

(1) Signature: [static] QFont font

Description: Static method QFont QApplication::font()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'font'. This is the getter.

(2) Signature: [static] QFont font (const QWidget ptr arg1)

Description: Static method QFont QApplication::font(const QWidget *)

This method is static and can be called without an instance.

Python specific notes:
This method is available as 'font_' in Python to distiguish it from the property with the same name.

(3) Signature: [static] QFont font (string className)

Description: Static method QFont QApplication::font(const char *className)

This method is static and can be called without an instance.

Python specific notes:
This method is available as 'font_' in Python to distiguish it from the property with the same name.

fontChanged

Signature: [signal] void fontChanged (const QFont font)

Description: Signal declaration for QApplication::fontChanged(const QFont &font)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'fontChanged'. This is the getter.
The object exposes a writable attribute 'fontChanged'. This is the setter.

fontDatabaseChanged

Signature: [signal] void fontDatabaseChanged

Description: Signal declaration for QApplication::fontDatabaseChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'fontDatabaseChanged'. This is the getter.
The object exposes a writable attribute 'fontDatabaseChanged'. This is the setter.

fontMetrics

Signature: [static] QFontMetrics fontMetrics

Description: Static method QFontMetrics QApplication::fontMetrics()

This method is static and can be called without an instance.

globalStrut

Signature: [static] QSize globalStrut

Description: Static method QSize QApplication::globalStrut()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'globalStrut'. This is the getter.

globalStrut=

Signature: [static] void globalStrut= (const QSize arg1)

Description: Static method void QApplication::setGlobalStrut(const QSize &)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'globalStrut'. This is the setter.

isEffectEnabled?

Signature: [static] bool isEffectEnabled? (const Qt_UIEffect arg1)

Description: Static method bool QApplication::isEffectEnabled(Qt::UIEffect)

This method is static and can be called without an instance.

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QApplication::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

keyboardInputInterval

Signature: [static] int keyboardInputInterval

Description: Static method int QApplication::keyboardInputInterval()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'keyboardInputInterval'. This is the getter.

keyboardInputInterval=

Signature: [static] void keyboardInputInterval= (int arg1)

Description: Static method void QApplication::setKeyboardInputInterval(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'keyboardInputInterval'. This is the setter.

lastWindowClosed

Signature: [signal] void lastWindowClosed

Description: Signal declaration for QApplication::lastWindowClosed()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'lastWindowClosed'. This is the getter.
The object exposes a writable attribute 'lastWindowClosed'. This is the setter.

layoutDirectionChanged

Signature: [signal] void layoutDirectionChanged (const Qt_LayoutDirection direction)

Description: Signal declaration for QApplication::layoutDirectionChanged(Qt::LayoutDirection direction)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'layoutDirectionChanged'. This is the getter.
The object exposes a writable attribute 'layoutDirectionChanged'. This is the setter.

new

Signature: [static] new QApplication ptr new (string[] argv, bool gui = true)

Description: Creates a new QApplication object

argv:The command line arguments to pass to Qt
gui:If true, a GUI-enabled application is constructed

Python specific notes:
This method is the default initializer of the object.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QApplication::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

organizationDomainChanged

Signature: [signal] void organizationDomainChanged

Description: Signal declaration for QApplication::organizationDomainChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'organizationDomainChanged'. This is the getter.
The object exposes a writable attribute 'organizationDomainChanged'. This is the setter.

organizationNameChanged

Signature: [signal] void organizationNameChanged

Description: Signal declaration for QApplication::organizationNameChanged()

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'organizationNameChanged'. This is the getter.
The object exposes a writable attribute 'organizationNameChanged'. This is the setter.

palette

(1) Signature: [static] QPalette palette

Description: Static method QPalette QApplication::palette()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'palette'. This is the getter.

(2) Signature: [static] QPalette palette (const QWidget ptr arg1)

Description: Static method QPalette QApplication::palette(const QWidget *)

This method is static and can be called without an instance.

Python specific notes:
This method is available as 'palette_' in Python to distiguish it from the property with the same name.

(3) Signature: [static] QPalette palette (string className)

Description: Static method QPalette QApplication::palette(const char *className)

This method is static and can be called without an instance.

Python specific notes:
This method is available as 'palette_' in Python to distiguish it from the property with the same name.

paletteChanged

Signature: [signal] void paletteChanged (const QPalette pal)

Description: Signal declaration for QApplication::paletteChanged(const QPalette &pal)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'paletteChanged'. This is the getter.
The object exposes a writable attribute 'paletteChanged'. This is the setter.

primaryScreenChanged

Signature: [signal] void primaryScreenChanged (QScreen ptr screen)

Description: Signal declaration for QApplication::primaryScreenChanged(QScreen *screen)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'primaryScreenChanged'. This is the getter.
The object exposes a writable attribute 'primaryScreenChanged'. This is the setter.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QApplication::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

saveStateRequest

Signature: [signal] void saveStateRequest (QSessionManager sessionManager)

Description: Signal declaration for QApplication::saveStateRequest(QSessionManager &sessionManager)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'saveStateRequest'. This is the getter.
The object exposes a writable attribute 'saveStateRequest'. This is the setter.

screenAdded

Signature: [signal] void screenAdded (QScreen ptr screen)

Description: Signal declaration for QApplication::screenAdded(QScreen *screen)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'screenAdded'. This is the getter.
The object exposes a writable attribute 'screenAdded'. This is the setter.

screenRemoved

Signature: [signal] void screenRemoved (QScreen ptr screen)

Description: Signal declaration for QApplication::screenRemoved(QScreen *screen)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'screenRemoved'. This is the getter.
The object exposes a writable attribute 'screenRemoved'. This is the setter.

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QApplication::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QApplication::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

setActiveWindow

Signature: [static] void setActiveWindow (QWidget ptr act)

Description: Static method void QApplication::setActiveWindow(QWidget *act)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'activeWindow'. This is the setter.

setAutoSipEnabled

Signature: void setAutoSipEnabled (bool enabled)

Description: Method void QApplication::setAutoSipEnabled(const bool enabled)

Python specific notes:
The object exposes a writable attribute 'autoSipEnabled'. This is the setter.

setColorSpec

Signature: [static] void setColorSpec (int arg1)

Description: Static method void QApplication::setColorSpec(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'colorSpec'. This is the setter.

setCursorFlashTime

Signature: [static] void setCursorFlashTime (int arg1)

Description: Static method void QApplication::setCursorFlashTime(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'cursorFlashTime'. This is the setter.

setDoubleClickInterval

Signature: [static] void setDoubleClickInterval (int arg1)

Description: Static method void QApplication::setDoubleClickInterval(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'doubleClickInterval'. This is the setter.

setEffectEnabled

Signature: [static] void setEffectEnabled (const Qt_UIEffect arg1, bool enable = true)

Description: Static method void QApplication::setEffectEnabled(Qt::UIEffect, bool enable)

This method is static and can be called without an instance.

setFont

Signature: [static] void setFont (const QFont arg1, string className = nullptr)

Description: Static method void QApplication::setFont(const QFont &, const char *className)

This method is static and can be called without an instance.

setGlobalStrut

Signature: [static] void setGlobalStrut (const QSize arg1)

Description: Static method void QApplication::setGlobalStrut(const QSize &)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'globalStrut'. This is the setter.

setKeyboardInputInterval

Signature: [static] void setKeyboardInputInterval (int arg1)

Description: Static method void QApplication::setKeyboardInputInterval(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'keyboardInputInterval'. This is the setter.

setPalette

Signature: [static] void setPalette (const QPalette arg1, string className = nullptr)

Description: Static method void QApplication::setPalette(const QPalette &, const char *className)

This method is static and can be called without an instance.

setStartDragDistance

Signature: [static] void setStartDragDistance (int l)

Description: Static method void QApplication::setStartDragDistance(int l)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'startDragDistance'. This is the setter.

setStartDragTime

Signature: [static] void setStartDragTime (int ms)

Description: Static method void QApplication::setStartDragTime(int ms)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'startDragTime'. This is the setter.

setStyle

(1) Signature: [static] void setStyle (QStyle ptr arg1)

Description: Static method void QApplication::setStyle(QStyle *)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

(2) Signature: [static] QStyle ptr setStyle (string arg1)

Description: Static method QStyle *QApplication::setStyle(const QString &)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

setStyleSheet

Signature: void setStyleSheet (string sheet)

Description: Method void QApplication::setStyleSheet(const QString &sheet)

Python specific notes:
The object exposes a writable attribute 'styleSheet'. This is the setter.

setWheelScrollLines

Signature: [static] void setWheelScrollLines (int arg1)

Description: Static method void QApplication::setWheelScrollLines(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'wheelScrollLines'. This is the setter.

setWindowIcon

Signature: [static] void setWindowIcon (const QIcon icon)

Description: Static method void QApplication::setWindowIcon(const QIcon &icon)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'windowIcon'. This is the setter.

startDragDistance

Signature: [static] int startDragDistance

Description: Static method int QApplication::startDragDistance()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'startDragDistance'. This is the getter.

startDragDistance=

Signature: [static] void startDragDistance= (int l)

Description: Static method void QApplication::setStartDragDistance(int l)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'startDragDistance'. This is the setter.

startDragTime

Signature: [static] int startDragTime

Description: Static method int QApplication::startDragTime()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'startDragTime'. This is the getter.

startDragTime=

Signature: [static] void startDragTime= (int ms)

Description: Static method void QApplication::setStartDragTime(int ms)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'startDragTime'. This is the setter.

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

style

Signature: [static] QStyle ptr style

Description: Static method QStyle *QApplication::style()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'style'. This is the getter.

style=

(1) Signature: [static] void style= (QStyle ptr arg1)

Description: Static method void QApplication::setStyle(QStyle *)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

(2) Signature: [static] QStyle ptr style= (string arg1)

Description: Static method QStyle *QApplication::setStyle(const QString &)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

styleSheet

Signature: [const] string styleSheet

Description: Method QString QApplication::styleSheet()

Python specific notes:
The object exposes a readable attribute 'styleSheet'. This is the getter.

styleSheet=

Signature: void styleSheet= (string sheet)

Description: Method void QApplication::setStyleSheet(const QString &sheet)

Python specific notes:
The object exposes a writable attribute 'styleSheet'. This is the setter.

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QApplication::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

topLevelAt

(1) Signature: [static] QWidget ptr topLevelAt (const QPoint p)

Description: Static method QWidget *QApplication::topLevelAt(const QPoint &p)

This method is static and can be called without an instance.

(2) Signature: [static] QWidget ptr topLevelAt (int x, int y)

Description: Static method QWidget *QApplication::topLevelAt(int x, int y)

This method is static and can be called without an instance.

topLevelWidgets

Signature: [static] QWidget ptr[] topLevelWidgets

Description: Static method QList<QWidget *> QApplication::topLevelWidgets()

This method is static and can be called without an instance.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QApplication::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QApplication::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

wheelScrollLines

Signature: [static] int wheelScrollLines

Description: Static method int QApplication::wheelScrollLines()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'wheelScrollLines'. This is the getter.

wheelScrollLines=

Signature: [static] void wheelScrollLines= (int arg1)

Description: Static method void QApplication::setWheelScrollLines(int)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'wheelScrollLines'. This is the setter.

widgetAt

(1) Signature: [static] QWidget ptr widgetAt (const QPoint p)

Description: Static method QWidget *QApplication::widgetAt(const QPoint &p)

This method is static and can be called without an instance.

(2) Signature: [static] QWidget ptr widgetAt (int x, int y)

Description: Static method QWidget *QApplication::widgetAt(int x, int y)

This method is static and can be called without an instance.

windowIcon

Signature: [static] QIcon windowIcon

Description: Static method QIcon QApplication::windowIcon()

This method is static and can be called without an instance.

Python specific notes:
The object exposes a readable attribute 'windowIcon'. This is the getter.

windowIcon=

Signature: [static] void windowIcon= (const QIcon icon)

Description: Static method void QApplication::setWindowIcon(const QIcon &icon)

This method is static and can be called without an instance.

Python specific notes:
The object exposes a writable attribute 'windowIcon'. This is the setter.