API reference - Class QApplication

Notation used in Ruby API documentation

Description: Binding of QApplication

Class hierarchy: QApplication » QCoreApplication » QObject

Sub-classes: Type

Public constructors

new QApplication ptrnewCreates a new object of this class

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.
[event]voidaboutToQuitSignal declaration for QApplication::aboutToQuit()
[const]boolautoSipEnabledMethod bool QApplication::autoSipEnabled()
voidautoSipEnabled=(bool enabled)Method void QApplication::setAutoSipEnabled(const bool enabled)
[event]voiddestroyed(QObject ptr arg1)Signal declaration for QApplication::destroyed(QObject *)
[virtual]booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QApplication::eventFilter(QObject *, QEvent *)
[event]voidfocusChanged(QWidget ptr old,
QWidget ptr now)
Signal declaration for QApplication::focusChanged(QWidget *old, QWidget *now)
[event]voidfontDatabaseChangedSignal declaration for QApplication::fontDatabaseChanged()
[const]QInputContext ptrinputContextMethod QInputContext *QApplication::inputContext()
voidinputContext=(QInputContext ptr arg1)Method void QApplication::setInputContext(QInputContext *)
[event]voidlastWindowClosedSignal declaration for QApplication::lastWindowClosed()
[virtual]boolnotify(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QApplication::notify(QObject *, QEvent *)
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)
[event]voidunixSignal(int arg1)Signal declaration for QApplication::unixSignal(int)

Public static methods and constants

[static,const]new QApplication_Type ptrGuiClientEnum constant QApplication::GuiClient
[static,const]new QApplication_Type ptrGuiServerEnum constant QApplication::GuiServer
[static,const]new QApplication_Type ptrTtyEnum 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()
new QApplication ptrnew_appCreates a new QApplication object
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)

[virtual]voidchildEvent(QChildEvent ptr arg1)Virtual method void QApplication::childEvent(QChildEvent *)
[virtual]voidcustomEvent(QEvent ptr arg1)Virtual method void QApplication::customEvent(QEvent *)
[virtual]voiddisconnectNotify(string signal)Virtual method void QApplication::disconnectNotify(const char *signal)
[virtual]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()
[virtual]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]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

[static,const] new QApplication_Type ptr GuiClient

Description: Enum constant QApplication::GuiClient

[static,const] new QApplication_Type ptr GuiServer

Description: Enum constant QApplication::GuiServer

[static,const] new QApplication_Type ptr Tty

Description: Enum constant QApplication::Tty

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.

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.

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

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

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.

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.

[static] void aboutQt

Description: Static method void QApplication::aboutQt()

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

[event] void aboutToQuit

Description: Signal declaration for QApplication::aboutToQuit()

You can bind a procedure to this signal.

[static] QWidget ptr activeModalWidget

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

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

[static] QWidget ptr activePopupWidget

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

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

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

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

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

[static] QWidget ptr[] allWidgets

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

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

[const] bool autoSipEnabled

Description: Method bool QApplication::autoSipEnabled()

Python specific notes:

The object exposes a readable attribute 'autoSipEnabled'. This is the getter.

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.

[static] void beep

Description: Static method void QApplication::beep()

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

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

[virtual] void childEvent(QChildEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[static] QClipboard ptr clipboard

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

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

[static] void closeAllWindows

Description: Static method void QApplication::closeAllWindows()

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

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

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

void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

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

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

[virtual] void customEvent(QEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[static] QDesktopWidget ptr desktop

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

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

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

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

void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

[event] void destroyed(QObject ptr arg1)

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

You can bind a procedure to this signal.

[const] bool destroyed?

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

Use of this method is deprecated. Use _destroyed? instead

[virtual] void disconnectNotify(string signal)

Description: Virtual method void QApplication::disconnectNotify(const char *signal)

This method can be reimplemented in a derived class.

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

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

[virtual] bool event(QEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] 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.

[static] int exec

Description: Static method int QApplication::exec()

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

Python specific notes:

This method is available as method 'exec_' in Python

[event] 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.

[static] QWidget ptr focusWidget

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

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

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

[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 method 'font_' in Python

[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 method 'font_' in Python

[event] void fontDatabaseChanged

Description: Signal declaration for QApplication::fontDatabaseChanged()

You can bind a procedure to this signal.

[static] QFontMetrics fontMetrics

Description: Static method QFontMetrics QApplication::fontMetrics()

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

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

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

[const] QInputContext ptr inputContext

Description: Method QInputContext *QApplication::inputContext()

Python specific notes:

The object exposes a readable attribute 'inputContext'. This is the getter.

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.

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

[static] bool isLeftToRight?

Description: Static method bool QApplication::isLeftToRight()

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

[static] bool isRightToLeft?

Description: Static method bool QApplication::isRightToLeft()

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

[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

[static] Qt_LayoutDirection keyboardInputDirection

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

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

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

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

[static] QLocale keyboardInputLocale

Description: Static method QLocale QApplication::keyboardInputLocale()

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

[static] Qt_QFlags_KeyboardModifier keyboardModifiers

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

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

[event] void lastWindowClosed

Description: Signal declaration for QApplication::lastWindowClosed()

You can bind a procedure to this signal.

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

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

[static] Qt_QFlags_MouseButton mouseButtons

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

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

[static] new QApplication ptr new

Description: Creates a new object of this class

Python specific notes:

This method is the default initializer of the object

[static] new QApplication ptr new_app

Description: Creates a new QApplication object

This implementation is provided for test purposes only. It is not required usually to create a QApplication object. Use the object provided by QApplication::instance instead.

[virtual] bool notify(QObject ptr arg1,QEvent ptr arg2)

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

This method can be reimplemented in a derived class.

[static] QCursor ptr overrideCursor

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

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

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

[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 method 'palette_' in Python

[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 method 'palette_' in Python

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

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

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

[static] void restoreOverrideCursor

Description: Static method void QApplication::restoreOverrideCursor()

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

[const] QObject ptr sender

Description: Method QObject *QApplication::sender()

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

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

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.

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

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

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

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

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

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

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

[static] void setGraphicsSystem(string arg1)

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

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

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.

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

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

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

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

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

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

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

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

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

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.

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

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

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

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

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

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

[static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

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

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

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

[const] string styleSheet

Description: Method QString QApplication::styleSheet()

Python specific notes:

The object exposes a readable attribute 'styleSheet'. This is the getter.

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.

[static] void syncX

Description: Static method void QApplication::syncX()

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

[virtual] void timerEvent(QTimerEvent ptr arg1)

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

This method can be reimplemented in a derived class.

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

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

[static] QWidget ptr[] topLevelWidgets

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

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

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

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

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

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

[static] QApplication_Type type

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

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

[event] void unixSignal(int arg1)

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

You can bind a procedure to this signal.

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

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

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

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

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

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