API reference - Class QApplicationNotation used in Ruby API documentation Description: Binding of QApplication Class hierarchy: QApplication » QCoreApplication » QObject Sub-classes: Type
Public constructors
Public methods
Public static methods and constants
Protected methods (static, non-static and constructors)
Deprecated methods (protected, public, static, non-static and constructors)
Detailed description[static,const] new QApplication_Type ptr GuiClientDescription: Enum constant QApplication::GuiClient [static,const] new QApplication_Type ptr GuiServerDescription: Enum constant QApplication::GuiServer [static,const] new QApplication_Type ptr TtyDescription: Enum constant QApplication::Tty void _createDescription: 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 _destroyDescription: 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 _manageDescription: 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 _unmanageDescription: 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 aboutQtDescription: Static method void QApplication::aboutQt() This method is static and can be called without an instance. [event] void aboutToQuitDescription: Signal declaration for QApplication::aboutToQuit() You can bind a procedure to this signal. [static] QWidget ptr activeModalWidgetDescription: Static method QWidget *QApplication::activeModalWidget() This method is static and can be called without an instance. [static] QWidget ptr activePopupWidgetDescription: Static method QWidget *QApplication::activePopupWidget() This method is static and can be called without an instance. [static] QWidget ptr activeWindowDescription: 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[] allWidgetsDescription: Static method QList<QWidget *> QApplication::allWidgets() This method is static and can be called without an instance. [const] bool autoSipEnabledDescription: 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 beepDescription: 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 clipboardDescription: Static method QClipboard *QApplication::clipboard() This method is static and can be called without an instance. [static] void closeAllWindowsDescription: Static method void QApplication::closeAllWindows() This method is static and can be called without an instance. [static] int colorSpecDescription: 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 createDescription: Ensures the C++ object is created Use of this method is deprecated. Use _create instead [static] int cursorFlashTimeDescription: 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 desktopDescription: Static method QDesktopWidget *QApplication::desktop() This method is static and can be called without an instance. [static] bool desktopSettingsAwareDescription: 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 destroyDescription: 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 doubleClickIntervalDescription: 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 execDescription: 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 focusWidgetDescription: Static method QWidget *QApplication::focusWidget() This method is static and can be called without an instance. [static] QFont fontDescription: 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 fontDatabaseChangedDescription: Signal declaration for QApplication::fontDatabaseChanged() You can bind a procedure to this signal. [static] QFontMetrics fontMetricsDescription: Static method QFontMetrics QApplication::fontMetrics() This method is static and can be called without an instance. [static] QSize globalStrutDescription: 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 inputContextDescription: 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 keyboardInputDirectionDescription: Static method Qt::LayoutDirection QApplication::keyboardInputDirection() This method is static and can be called without an instance. [static] int keyboardInputIntervalDescription: 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 keyboardInputLocaleDescription: Static method QLocale QApplication::keyboardInputLocale() This method is static and can be called without an instance. [static] Qt_QFlags_KeyboardModifier keyboardModifiersDescription: Static method QFlags<Qt::KeyboardModifier> QApplication::keyboardModifiers() This method is static and can be called without an instance. [event] void lastWindowClosedDescription: Signal declaration for QApplication::lastWindowClosed() You can bind a procedure to this signal. [static] Qt_LayoutDirection layoutDirectionDescription: 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 mouseButtonsDescription: Static method QFlags<Qt::MouseButton> QApplication::mouseButtons() This method is static and can be called without an instance. [static] new QApplication ptr newDescription: Creates a new object of this class Python specific notes:This method is the default initializer of the object [static] new QApplication ptr new_appDescription: 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 overrideCursorDescription: Static method QCursor *QApplication::overrideCursor() This method is static and can be called without an instance. [static] QPalette paletteDescription: 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 quitOnLastWindowClosedDescription: 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 restoreOverrideCursorDescription: Static method void QApplication::restoreOverrideCursor() This method is static and can be called without an instance. [const] QObject ptr senderDescription: 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 startDragDistanceDescription: 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 startDragTimeDescription: 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 staticMetaObjectDescription: Obtains the static MetaObject for this class. [static] QStyle ptr styleDescription: 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 styleSheetDescription: 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 syncXDescription: 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[] topLevelWidgetsDescription: 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 typeDescription: 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 wheelScrollLinesDescription: 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 windowIconDescription: 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. |