KLayout 0.29.1 (2024-05-13 48b32733c) [master]

API reference - Class QApplication

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QApplication

Class hierarchy: QApplication » QCoreApplication » QObject

Sub-classes: Type, QFlags_Type

Public constructors

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

Public methods

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()
[const]boolautoSipEnabledMethod bool QApplication::autoSipEnabled()
voidautoSipEnabled=(bool enabled)Method void QApplication::setAutoSipEnabled(const bool enabled)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QApplication::destroyed(QObject *)
voidemit_aboutToQuitEmitter for signal void QApplication::aboutToQuit()
voidemit_destroyed(QObject ptr arg1 = 0)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_fontDatabaseChangedEmitter for signal void QApplication::fontDatabaseChanged()
voidemit_lastWindowClosedEmitter for signal void QApplication::lastWindowClosed()
voidemit_unixSignal(int arg1)Emitter for signal void QApplication::unixSignal(int)
booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QApplication::eventFilter(QObject *, QEvent *)
[signal]voidfocusChanged(QWidget ptr old,
QWidget ptr now)
Signal declaration for QApplication::focusChanged(QWidget *old, QWidget *now)
[signal]voidfontDatabaseChangedSignal declaration for QApplication::fontDatabaseChanged()
[const]QInputContext ptrinputContextMethod QInputContext *QApplication::inputContext()
voidinputContext=(QInputContext ptr arg1)Method void QApplication::setInputContext(QInputContext *)
[const]boolisSessionRestored?Method bool QApplication::isSessionRestored()
[signal]voidlastWindowClosedSignal declaration for QApplication::lastWindowClosed()
[const]stringsessionIdMethod QString QApplication::sessionId()
[const]stringsessionKeyMethod QString QApplication::sessionKey()
voidsetAutoSipEnabled(bool enabled)Method void QApplication::setAutoSipEnabled(const bool enabled)
voidsetInputContext(QInputContext ptr arg1)Method void QApplication::setInputContext(QInputContext *)
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)
[signal]voidunixSignal(int arg1)Signal declaration for QApplication::unixSignal(int)

Public static methods and constants

[static,const]QApplication_TypeGuiClientEnum constant QApplication::GuiClient
[static,const]QApplication_TypeGuiServerEnum constant QApplication::GuiServer
[static,const]QApplication_TypeTtyEnum constant QApplication::Tty
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()
voidchangeOverrideCursor(const QCursor arg1)Static method void QApplication::changeOverrideCursor(const QCursor &)
QClipboard ptrclipboardStatic method QClipboard *QApplication::clipboard()
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()
booldesktopSettingsAwareStatic method bool QApplication::desktopSettingsAware()
voiddesktopSettingsAware=(bool arg1)Static method void QApplication::setDesktopSettingsAware(bool)
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)
boolisLeftToRight?Static method bool QApplication::isLeftToRight()
boolisRightToLeft?Static method bool QApplication::isRightToLeft()
Qt_LayoutDirectionkeyboardInputDirectionStatic method Qt::LayoutDirection QApplication::keyboardInputDirection()
intkeyboardInputIntervalStatic method int QApplication::keyboardInputInterval()
voidkeyboardInputInterval=(int arg1)Static method void QApplication::setKeyboardInputInterval(int)
QLocalekeyboardInputLocaleStatic method QLocale QApplication::keyboardInputLocale()
Qt_QFlags_KeyboardModifierkeyboardModifiersStatic method QFlags<Qt::KeyboardModifier> QApplication::keyboardModifiers()
Qt_LayoutDirectionlayoutDirectionStatic method Qt::LayoutDirection QApplication::layoutDirection()
voidlayoutDirection=(const Qt_LayoutDirection direction)Static method void QApplication::setLayoutDirection(Qt::LayoutDirection direction)
Qt_QFlags_MouseButtonmouseButtonsStatic method QFlags<Qt::MouseButton> QApplication::mouseButtons()
QCursor ptroverrideCursorStatic method QCursor *QApplication::overrideCursor()
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)
boolquitOnLastWindowClosedStatic method bool QApplication::quitOnLastWindowClosed()
voidquitOnLastWindowClosed=(bool quit)Static method void QApplication::setQuitOnLastWindowClosed(bool quit)
voidrestoreOverrideCursorStatic method void QApplication::restoreOverrideCursor()
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)
voidsetDesktopSettingsAware(bool arg1)Static method void QApplication::setDesktopSettingsAware(bool)
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 = 0)
Static method void QApplication::setFont(const QFont &, const char *className)
voidsetGlobalStrut(const QSize arg1)Static method void QApplication::setGlobalStrut(const QSize &)
voidsetGraphicsSystem(string arg1)Static method void QApplication::setGraphicsSystem(const QString &)
voidsetKeyboardInputInterval(int arg1)Static method void QApplication::setKeyboardInputInterval(int)
voidsetLayoutDirection(const Qt_LayoutDirection direction)Static method void QApplication::setLayoutDirection(Qt::LayoutDirection direction)
voidsetOverrideCursor(const QCursor arg1)Static method void QApplication::setOverrideCursor(const QCursor &)
voidsetPalette(const QPalette arg1,
string className = 0)
Static method void QApplication::setPalette(const QPalette &, const char *className)
voidsetQuitOnLastWindowClosed(bool quit)Static method void QApplication::setQuitOnLastWindowClosed(bool quit)
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 &)
voidsyncXStatic method void QApplication::syncX()
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 = 0)
Static method QString QApplication::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QApplication::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QApplication::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QApplication::trUtf8(const char *s, const char *c, int n)
QApplication_TypetypeStatic method QApplication::Type QApplication::type()
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 arg1)Virtual method void QApplication::childEvent(QChildEvent *)
voidcustomEvent(QEvent ptr arg1)Virtual method void QApplication::customEvent(QEvent *)
voiddisconnectNotify(string signal)Virtual method void QApplication::disconnectNotify(const char *signal)
boolevent(QEvent ptr arg1)Virtual method bool QApplication::event(QEvent *)
[const]intreceivers(string signal)Method int QApplication::receivers(const char *signal)
[const]QObject ptrsenderMethod QObject *QApplication::sender()
voidtimerEvent(QTimerEvent ptr arg1)Virtual method void QApplication::timerEvent(QTimerEvent *)

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

GuiClient

Signature: [static,const] QApplication_Type GuiClient

Description: Enum constant QApplication::GuiClient

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

GuiServer

Signature: [static,const] QApplication_Type GuiServer

Description: Enum constant QApplication::GuiServer

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

Tty

Signature: [static,const] QApplication_Type Tty

Description: Enum constant QApplication::Tty

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

_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.

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.

changeOverrideCursor

Signature: [static] void changeOverrideCursor (const QCursor arg1)

Description: Static method void QApplication::changeOverrideCursor(const QCursor &)

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

childEvent

Signature: void childEvent (QChildEvent ptr arg1)

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

This method can be reimplemented in a derived class.

clipboard

Signature: [static] QClipboard ptr clipboard

Description: Static method QClipboard *QApplication::clipboard()

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

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.

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

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.

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 arg1)

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

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.

desktopSettingsAware

Signature: [static] bool desktopSettingsAware

Description: Static method bool QApplication::desktopSettingsAware()

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

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

desktopSettingsAware=

Signature: [static] void desktopSettingsAware= (bool arg1)

Description: Static method void QApplication::setDesktopSettingsAware(bool)

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

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

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

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: [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 (string signal)

Description: Virtual method void QApplication::disconnectNotify(const char *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_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = 0)

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_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_unixSignal

Signature: void emit_unixSignal (int arg1)

Description: Emitter for signal void QApplication::unixSignal(int)

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 arg1, QEvent ptr arg2)

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

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.

focusWidget

Signature: [static] QWidget ptr focusWidget

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

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

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.

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.

inputContext

Signature: [const] QInputContext ptr inputContext

Description: Method QInputContext *QApplication::inputContext()

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

inputContext=

Signature: void inputContext= (QInputContext ptr arg1)

Description: Method void QApplication::setInputContext(QInputContext *)

Python specific notes:
The object exposes a writable attribute 'inputContext'. 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.

isLeftToRight?

Signature: [static] bool isLeftToRight?

Description: Static method bool QApplication::isLeftToRight()

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

isRightToLeft?

Signature: [static] bool isRightToLeft?

Description: Static method bool QApplication::isRightToLeft()

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

isSessionRestored?

Signature: [const] bool isSessionRestored?

Description: Method bool QApplication::isSessionRestored()

is_const_object?

Signature: [const] bool is_const_object?

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

Use of this method is deprecated. Use _is_const_object? instead

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

keyboardInputDirection

Signature: [static] Qt_LayoutDirection keyboardInputDirection

Description: Static method Qt::LayoutDirection QApplication::keyboardInputDirection()

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

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.

keyboardInputLocale

Signature: [static] QLocale keyboardInputLocale

Description: Static method QLocale QApplication::keyboardInputLocale()

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

keyboardModifiers

Signature: [static] Qt_QFlags_KeyboardModifier keyboardModifiers

Description: Static method QFlags<Qt::KeyboardModifier> QApplication::keyboardModifiers()

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

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.

layoutDirection

Signature: [static] Qt_LayoutDirection layoutDirection

Description: Static method Qt::LayoutDirection QApplication::layoutDirection()

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

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

layoutDirection=

Signature: [static] void layoutDirection= (const Qt_LayoutDirection direction)

Description: Static method void QApplication::setLayoutDirection(Qt::LayoutDirection direction)

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

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

mouseButtons

Signature: [static] Qt_QFlags_MouseButton mouseButtons

Description: Static method QFlags<Qt::MouseButton> QApplication::mouseButtons()

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

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.

overrideCursor

Signature: [static] QCursor ptr overrideCursor

Description: Static method QCursor *QApplication::overrideCursor()

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

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.

quitOnLastWindowClosed

Signature: [static] bool quitOnLastWindowClosed

Description: Static method bool QApplication::quitOnLastWindowClosed()

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

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

quitOnLastWindowClosed=

Signature: [static] void quitOnLastWindowClosed= (bool quit)

Description: Static method void QApplication::setQuitOnLastWindowClosed(bool quit)

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

Python specific notes:
The object exposes a writable attribute 'quitOnLastWindowClosed'. 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.

restoreOverrideCursor

Signature: [static] void restoreOverrideCursor

Description: Static method void QApplication::restoreOverrideCursor()

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

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.

sessionId

Signature: [const] string sessionId

Description: Method QString QApplication::sessionId()

sessionKey

Signature: [const] string sessionKey

Description: Method QString QApplication::sessionKey()

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.

setDesktopSettingsAware

Signature: [static] void setDesktopSettingsAware (bool arg1)

Description: Static method void QApplication::setDesktopSettingsAware(bool)

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

Python specific notes:
The object exposes a writable attribute 'desktopSettingsAware'. 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 = 0)

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.

setGraphicsSystem

Signature: [static] void setGraphicsSystem (string arg1)

Description: Static method void QApplication::setGraphicsSystem(const QString &)

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

setInputContext

Signature: void setInputContext (QInputContext ptr arg1)

Description: Method void QApplication::setInputContext(QInputContext *)

Python specific notes:
The object exposes a writable attribute 'inputContext'. 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.

setLayoutDirection

Signature: [static] void setLayoutDirection (const Qt_LayoutDirection direction)

Description: Static method void QApplication::setLayoutDirection(Qt::LayoutDirection direction)

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

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

setOverrideCursor

Signature: [static] void setOverrideCursor (const QCursor arg1)

Description: Static method void QApplication::setOverrideCursor(const QCursor &)

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

setPalette

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

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

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

setQuitOnLastWindowClosed

Signature: [static] void setQuitOnLastWindowClosed (bool quit)

Description: Static method void QApplication::setQuitOnLastWindowClosed(bool quit)

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

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

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.

syncX

Signature: [static] void syncX

Description: Static method void QApplication::syncX()

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

timerEvent

Signature: void timerEvent (QTimerEvent ptr arg1)

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

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

(1) Signature: [static] string tr (string s, string c = 0)

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

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

(2) Signature: [static] string tr (string s, string c, int n)

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

(1) Signature: [static] string trUtf8 (string s, string c = 0)

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

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

(2) Signature: [static] string trUtf8 (string s, string c, int n)

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.

type

Signature: [static] QApplication_Type type

Description: Static method QApplication::Type QApplication::type()

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

unixSignal

Signature: [signal] void unixSignal (int arg1)

Description: Signal declaration for QApplication::unixSignal(int)

You can bind a procedure to this signal.

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

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.