API reference - Class QAction

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QAction

Class hierarchy: QAction » QObject

Sub-classes: ActionEvent, QFlags_ActionEvent, MenuRole, QFlags_MenuRole, Priority, QFlags_Priority

Public constructors

new QActionnew(QObject ptr parent)Constructor QAction::QAction(QObject *parent)
new QActionnew(string text,
QObject ptr parent)
Constructor QAction::QAction(const QString &text, QObject *parent)
new QActionnew(const QIcon icon,
string text,
QObject ptr parent)
Constructor QAction::QAction(const QIcon &icon, const QString &text, QObject *parent)

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.
[const]QActionGroup ptractionGroupMethod QActionGroup *QAction::actionGroup()
voidactionGroup=(QActionGroup ptr group)Method void QAction::setActionGroup(QActionGroup *group)
voidactivate(const QAction_ActionEvent event)Method void QAction::activate(QAction::ActionEvent event)
[const]QGraphicsWidget ptr[]associatedGraphicsWidgetsMethod QList<QGraphicsWidget *> QAction::associatedGraphicsWidgets()
[const]QWidget ptr[]associatedWidgetsMethod QList<QWidget *> QAction::associatedWidgets()
[const]boolautoRepeatMethod bool QAction::autoRepeat()
voidautoRepeat=(bool arg1)Method void QAction::setAutoRepeat(bool)
[signal]voidchangedSignal declaration for QAction::changed()
[const]boolcheckableMethod bool QAction::isCheckable()
voidcheckable=(bool arg1)Method void QAction::setCheckable(bool)
[const]boolcheckedMethod bool QAction::isChecked()
voidchecked=(bool arg1)Method void QAction::setChecked(bool)
[const]variantdataMethod QVariant QAction::data()
voiddata=(variant var)Method void QAction::setData(const QVariant &var)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QAction::destroyed(QObject *)
voidemit_changedEmitter for signal void QAction::changed()
voidemit_destroyed(QObject ptr arg1 = 0)Emitter for signal void QAction::destroyed(QObject *)
voidemit_hoveredEmitter for signal void QAction::hovered()
voidemit_objectNameChanged(string objectName)Emitter for signal void QAction::objectNameChanged(const QString &objectName)
voidemit_toggled(bool arg1)Emitter for signal void QAction::toggled(bool)
voidemit_triggered(bool checked = false)Emitter for signal void QAction::triggered(bool checked)
[const]boolenabledMethod bool QAction::isEnabled()
voidenabled=(bool arg1)Method void QAction::setEnabled(bool)
booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QAction::eventFilter(QObject *, QEvent *)
[const]QFontfontMethod QFont QAction::font()
voidfont=(const QFont font)Method void QAction::setFont(const QFont &font)
voidhoverMethod void QAction::hover()
[signal]voidhoveredSignal declaration for QAction::hovered()
[const]QIconiconMethod QIcon QAction::icon()
voidicon=(const QIcon icon)Method void QAction::setIcon(const QIcon &icon)
[const]stringiconTextMethod QString QAction::iconText()
voidiconText=(string text)Method void QAction::setIconText(const QString &text)
[const]booliconVisibleInMenuMethod bool QAction::isIconVisibleInMenu()
voidiconVisibleInMenu=(bool visible)Method void QAction::setIconVisibleInMenu(bool visible)
[const]boolisCheckable?Method bool QAction::isCheckable()
[const]boolisChecked?Method bool QAction::isChecked()
[const]boolisEnabled?Method bool QAction::isEnabled()
[const]boolisIconVisibleInMenu?Method bool QAction::isIconVisibleInMenu()
[const]boolisSeparator?Method bool QAction::isSeparator()
[const]boolisVisible?Method bool QAction::isVisible()
[const]QMenu ptrmenuMethod QMenu *QAction::menu()
voidmenu=(QMenu ptr menu)Method void QAction::setMenu(QMenu *menu)
[const]QAction_MenuRolemenuRoleMethod QAction::MenuRole QAction::menuRole()
voidmenuRole=(const QAction_MenuRole menuRole)Method void QAction::setMenuRole(QAction::MenuRole menuRole)
[signal]voidobjectNameChanged(string objectName)Signal declaration for QAction::objectNameChanged(const QString &objectName)
[const]QWidget ptrparentWidgetMethod QWidget *QAction::parentWidget()
[const]QAction_PrioritypriorityMethod QAction::Priority QAction::priority()
voidpriority=(const QAction_Priority priority)Method void QAction::setPriority(QAction::Priority priority)
[const]boolseparatorMethod bool QAction::isSeparator()
voidseparator=(bool b)Method void QAction::setSeparator(bool b)
voidsetActionGroup(QActionGroup ptr group)Method void QAction::setActionGroup(QActionGroup *group)
voidsetAutoRepeat(bool arg1)Method void QAction::setAutoRepeat(bool)
voidsetCheckable(bool arg1)Method void QAction::setCheckable(bool)
voidsetChecked(bool arg1)Method void QAction::setChecked(bool)
voidsetData(variant var)Method void QAction::setData(const QVariant &var)
voidsetDisabled(bool b)Method void QAction::setDisabled(bool b)
voidsetEnabled(bool arg1)Method void QAction::setEnabled(bool)
voidsetFont(const QFont font)Method void QAction::setFont(const QFont &font)
voidsetIcon(const QIcon icon)Method void QAction::setIcon(const QIcon &icon)
voidsetIconText(string text)Method void QAction::setIconText(const QString &text)
voidsetIconVisibleInMenu(bool visible)Method void QAction::setIconVisibleInMenu(bool visible)
voidsetMenu(QMenu ptr menu)Method void QAction::setMenu(QMenu *menu)
voidsetMenuRole(const QAction_MenuRole menuRole)Method void QAction::setMenuRole(QAction::MenuRole menuRole)
voidsetPriority(const QAction_Priority priority)Method void QAction::setPriority(QAction::Priority priority)
voidsetSeparator(bool b)Method void QAction::setSeparator(bool b)
voidsetShortcut(const QKeySequence shortcut)Method void QAction::setShortcut(const QKeySequence &shortcut)
voidsetShortcutContext(const Qt_ShortcutContext context)Method void QAction::setShortcutContext(Qt::ShortcutContext context)
voidsetShortcuts(QKeySequence[] shortcuts)Method void QAction::setShortcuts(const QList<QKeySequence> &shortcuts)
voidsetShortcuts(const QKeySequence_StandardKey arg1)Method void QAction::setShortcuts(QKeySequence::StandardKey)
voidsetStatusTip(string statusTip)Method void QAction::setStatusTip(const QString &statusTip)
voidsetText(string text)Method void QAction::setText(const QString &text)
voidsetToolTip(string tip)Method void QAction::setToolTip(const QString &tip)
voidsetVisible(bool arg1)Method void QAction::setVisible(bool)
voidsetWhatsThis(string what)Method void QAction::setWhatsThis(const QString &what)
[const]QKeySequenceshortcutMethod QKeySequence QAction::shortcut()
voidshortcut=(const QKeySequence shortcut)Method void QAction::setShortcut(const QKeySequence &shortcut)
[const]Qt_ShortcutContextshortcutContextMethod Qt::ShortcutContext QAction::shortcutContext()
voidshortcutContext=(const Qt_ShortcutContext context)Method void QAction::setShortcutContext(Qt::ShortcutContext context)
[const]QKeySequence[]shortcutsMethod QList<QKeySequence> QAction::shortcuts()
voidshortcuts=(QKeySequence[] shortcuts)Method void QAction::setShortcuts(const QList<QKeySequence> &shortcuts)
voidshortcuts=(const QKeySequence_StandardKey arg1)Method void QAction::setShortcuts(QKeySequence::StandardKey)
boolshowStatusText(QWidget ptr widget = 0)Method bool QAction::showStatusText(QWidget *widget)
[const]stringstatusTipMethod QString QAction::statusTip()
voidstatusTip=(string statusTip)Method void QAction::setStatusTip(const QString &statusTip)
[const]stringtextMethod QString QAction::text()
voidtext=(string text)Method void QAction::setText(const QString &text)
voidtoggleMethod void QAction::toggle()
[signal]voidtoggled(bool arg1)Signal declaration for QAction::toggled(bool)
[const]stringtoolTipMethod QString QAction::toolTip()
voidtoolTip=(string tip)Method void QAction::setToolTip(const QString &tip)
voidtriggerMethod void QAction::trigger()
[signal]voidtriggered(bool checked)Signal declaration for QAction::triggered(bool checked)
[const]boolvisibleMethod bool QAction::isVisible()
voidvisible=(bool arg1)Method void QAction::setVisible(bool)
[const]stringwhatsThisMethod QString QAction::whatsThis()
voidwhatsThis=(string what)Method void QAction::setWhatsThis(const QString &what)

Public static methods and constants

[static,const]QAction_MenuRoleAboutQtRoleEnum constant QAction::AboutQtRole
[static,const]QAction_MenuRoleAboutRoleEnum constant QAction::AboutRole
[static,const]QAction_MenuRoleApplicationSpecificRoleEnum constant QAction::ApplicationSpecificRole
[static,const]QAction_PriorityHighPriorityEnum constant QAction::HighPriority
[static,const]QAction_ActionEventHoverEnum constant QAction::Hover
[static,const]QAction_PriorityLowPriorityEnum constant QAction::LowPriority
[static,const]QAction_MenuRoleNoRoleEnum constant QAction::NoRole
[static,const]QAction_PriorityNormalPriorityEnum constant QAction::NormalPriority
[static,const]QAction_MenuRolePreferencesRoleEnum constant QAction::PreferencesRole
[static,const]QAction_MenuRoleQuitRoleEnum constant QAction::QuitRole
[static,const]QAction_MenuRoleTextHeuristicRoleEnum constant QAction::TextHeuristicRole
[static,const]QAction_ActionEventTriggerEnum constant QAction::Trigger
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QAction::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QAction::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

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

Detailed description

AboutQtRole

Signature: [static,const] QAction_MenuRole AboutQtRole

Description: Enum constant QAction::AboutQtRole

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

AboutRole

Signature: [static,const] QAction_MenuRole AboutRole

Description: Enum constant QAction::AboutRole

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

ApplicationSpecificRole

Signature: [static,const] QAction_MenuRole ApplicationSpecificRole

Description: Enum constant QAction::ApplicationSpecificRole

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

HighPriority

Signature: [static,const] QAction_Priority HighPriority

Description: Enum constant QAction::HighPriority

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

Hover

Signature: [static,const] QAction_ActionEvent Hover

Description: Enum constant QAction::Hover

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

LowPriority

Signature: [static,const] QAction_Priority LowPriority

Description: Enum constant QAction::LowPriority

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

NoRole

Signature: [static,const] QAction_MenuRole NoRole

Description: Enum constant QAction::NoRole

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

NormalPriority

Signature: [static,const] QAction_Priority NormalPriority

Description: Enum constant QAction::NormalPriority

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

PreferencesRole

Signature: [static,const] QAction_MenuRole PreferencesRole

Description: Enum constant QAction::PreferencesRole

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

QuitRole

Signature: [static,const] QAction_MenuRole QuitRole

Description: Enum constant QAction::QuitRole

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

TextHeuristicRole

Signature: [static,const] QAction_MenuRole TextHeuristicRole

Description: Enum constant QAction::TextHeuristicRole

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

Trigger

Signature: [static,const] QAction_ActionEvent Trigger

Description: Enum constant QAction::Trigger

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

actionGroup

Signature: [const] QActionGroup ptr actionGroup

Description: Method QActionGroup *QAction::actionGroup()

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

actionGroup=

Signature: void actionGroup= (QActionGroup ptr group)

Description: Method void QAction::setActionGroup(QActionGroup *group)

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

activate

Signature: void activate (const QAction_ActionEvent event)

Description: Method void QAction::activate(QAction::ActionEvent event)

associatedGraphicsWidgets

Signature: [const] QGraphicsWidget ptr[] associatedGraphicsWidgets

Description: Method QList<QGraphicsWidget *> QAction::associatedGraphicsWidgets()

associatedWidgets

Signature: [const] QWidget ptr[] associatedWidgets

Description: Method QList<QWidget *> QAction::associatedWidgets()

autoRepeat

Signature: [const] bool autoRepeat

Description: Method bool QAction::autoRepeat()

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

autoRepeat=

Signature: void autoRepeat= (bool arg1)

Description: Method void QAction::setAutoRepeat(bool)

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

changed

Signature: [signal] void changed

Description: Signal declaration for QAction::changed()

You can bind a procedure to this signal.

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

checkable

Signature: [const] bool checkable

Description: Method bool QAction::isCheckable()

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

checkable=

Signature: void checkable= (bool arg1)

Description: Method void QAction::setCheckable(bool)

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

checked

Signature: [const] bool checked

Description: Method bool QAction::isChecked()

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

checked=

Signature: void checked= (bool arg1)

Description: Method void QAction::setChecked(bool)

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

childEvent

Signature: void childEvent (QChildEvent ptr arg1)

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

This method can be reimplemented in a derived class.

customEvent

Signature: void customEvent (QEvent ptr arg1)

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

This method can be reimplemented in a derived class.

data

Signature: [const] variant data

Description: Method QVariant QAction::data()

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

data=

Signature: void data= (variant var)

Description: Method void QAction::setData(const QVariant &var)

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

destroyed

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

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

You can bind a procedure to this signal.

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

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

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

This method can be reimplemented in a derived class.

emit_changed

Signature: void emit_changed

Description: Emitter for signal void QAction::changed()

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = 0)

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

Call this method to emit this signal.

emit_hovered

Signature: void emit_hovered

Description: Emitter for signal void QAction::hovered()

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

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

Call this method to emit this signal.

emit_toggled

Signature: void emit_toggled (bool arg1)

Description: Emitter for signal void QAction::toggled(bool)

Call this method to emit this signal.

emit_triggered

Signature: void emit_triggered (bool checked = false)

Description: Emitter for signal void QAction::triggered(bool checked)

Call this method to emit this signal.

enabled

Signature: [const] bool enabled

Description: Method bool QAction::isEnabled()

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

enabled=

Signature: void enabled= (bool arg1)

Description: Method void QAction::setEnabled(bool)

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

event

Signature: bool event (QEvent ptr arg1)

Description: Virtual method bool QAction::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 QAction::eventFilter(QObject *, QEvent *)

This method can be reimplemented in a derived class.

font

Signature: [const] QFont font

Description: Method QFont QAction::font()

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

font=

Signature: void font= (const QFont font)

Description: Method void QAction::setFont(const QFont &font)

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

hover

Signature: void hover

Description: Method void QAction::hover()

hovered

Signature: [signal] void hovered

Description: Signal declaration for QAction::hovered()

You can bind a procedure to this signal.

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

icon

Signature: [const] QIcon icon

Description: Method QIcon QAction::icon()

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

icon=

Signature: void icon= (const QIcon icon)

Description: Method void QAction::setIcon(const QIcon &icon)

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

iconText

Signature: [const] string iconText

Description: Method QString QAction::iconText()

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

iconText=

Signature: void iconText= (string text)

Description: Method void QAction::setIconText(const QString &text)

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

iconVisibleInMenu

Signature: [const] bool iconVisibleInMenu

Description: Method bool QAction::isIconVisibleInMenu()

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

iconVisibleInMenu=

Signature: void iconVisibleInMenu= (bool visible)

Description: Method void QAction::setIconVisibleInMenu(bool visible)

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

isCheckable?

Signature: [const] bool isCheckable?

Description: Method bool QAction::isCheckable()

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

isChecked?

Signature: [const] bool isChecked?

Description: Method bool QAction::isChecked()

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

isEnabled?

Signature: [const] bool isEnabled?

Description: Method bool QAction::isEnabled()

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

isIconVisibleInMenu?

Signature: [const] bool isIconVisibleInMenu?

Description: Method bool QAction::isIconVisibleInMenu()

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

isSeparator?

Signature: [const] bool isSeparator?

Description: Method bool QAction::isSeparator()

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

isSignalConnected

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

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

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

isVisible?

Signature: [const] bool isVisible?

Description: Method bool QAction::isVisible()

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

menu

Signature: [const] QMenu ptr menu

Description: Method QMenu *QAction::menu()

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

menu=

Signature: void menu= (QMenu ptr menu)

Description: Method void QAction::setMenu(QMenu *menu)

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

menuRole

Signature: [const] QAction_MenuRole menuRole

Description: Method QAction::MenuRole QAction::menuRole()

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

menuRole=

Signature: void menuRole= (const QAction_MenuRole menuRole)

Description: Method void QAction::setMenuRole(QAction::MenuRole menuRole)

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

new

(1) Signature: [static] new QAction new (QObject ptr parent)

Description: Constructor QAction::QAction(QObject *parent)

This method creates an object of class QAction.

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

(2) Signature: [static] new QAction new (string text, QObject ptr parent)

Description: Constructor QAction::QAction(const QString &text, QObject *parent)

This method creates an object of class QAction.

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

(3) Signature: [static] new QAction new (const QIcon icon, string text, QObject ptr parent)

Description: Constructor QAction::QAction(const QIcon &icon, const QString &text, QObject *parent)

This method creates an object of class QAction.

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

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

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

You can bind a procedure to this signal.

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

parentWidget

Signature: [const] QWidget ptr parentWidget

Description: Method QWidget *QAction::parentWidget()

priority

Signature: [const] QAction_Priority priority

Description: Method QAction::Priority QAction::priority()

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

priority=

Signature: void priority= (const QAction_Priority priority)

Description: Method void QAction::setPriority(QAction::Priority priority)

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

receivers

Signature: [const] int receivers (string signal)

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

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

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QAction::sender()

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

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QAction::senderSignalIndex()

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

separator

Signature: [const] bool separator

Description: Method bool QAction::isSeparator()

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

separator=

Signature: void separator= (bool b)

Description: Method void QAction::setSeparator(bool b)

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

setActionGroup

Signature: void setActionGroup (QActionGroup ptr group)

Description: Method void QAction::setActionGroup(QActionGroup *group)

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

setAutoRepeat

Signature: void setAutoRepeat (bool arg1)

Description: Method void QAction::setAutoRepeat(bool)

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

setCheckable

Signature: void setCheckable (bool arg1)

Description: Method void QAction::setCheckable(bool)

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

setChecked

Signature: void setChecked (bool arg1)

Description: Method void QAction::setChecked(bool)

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

setData

Signature: void setData (variant var)

Description: Method void QAction::setData(const QVariant &var)

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

setDisabled

Signature: void setDisabled (bool b)

Description: Method void QAction::setDisabled(bool b)

setEnabled

Signature: void setEnabled (bool arg1)

Description: Method void QAction::setEnabled(bool)

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

setFont

Signature: void setFont (const QFont font)

Description: Method void QAction::setFont(const QFont &font)

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

setIcon

Signature: void setIcon (const QIcon icon)

Description: Method void QAction::setIcon(const QIcon &icon)

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

setIconText

Signature: void setIconText (string text)

Description: Method void QAction::setIconText(const QString &text)

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

setIconVisibleInMenu

Signature: void setIconVisibleInMenu (bool visible)

Description: Method void QAction::setIconVisibleInMenu(bool visible)

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

setMenu

Signature: void setMenu (QMenu ptr menu)

Description: Method void QAction::setMenu(QMenu *menu)

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

setMenuRole

Signature: void setMenuRole (const QAction_MenuRole menuRole)

Description: Method void QAction::setMenuRole(QAction::MenuRole menuRole)

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

setPriority

Signature: void setPriority (const QAction_Priority priority)

Description: Method void QAction::setPriority(QAction::Priority priority)

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

setSeparator

Signature: void setSeparator (bool b)

Description: Method void QAction::setSeparator(bool b)

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

setShortcut

Signature: void setShortcut (const QKeySequence shortcut)

Description: Method void QAction::setShortcut(const QKeySequence &shortcut)

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

setShortcutContext

Signature: void setShortcutContext (const Qt_ShortcutContext context)

Description: Method void QAction::setShortcutContext(Qt::ShortcutContext context)

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

setShortcuts

(1) Signature: void setShortcuts (QKeySequence[] shortcuts)

Description: Method void QAction::setShortcuts(const QList<QKeySequence> &shortcuts)

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

(2) Signature: void setShortcuts (const QKeySequence_StandardKey arg1)

Description: Method void QAction::setShortcuts(QKeySequence::StandardKey)

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

setStatusTip

Signature: void setStatusTip (string statusTip)

Description: Method void QAction::setStatusTip(const QString &statusTip)

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

setText

Signature: void setText (string text)

Description: Method void QAction::setText(const QString &text)

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

setToolTip

Signature: void setToolTip (string tip)

Description: Method void QAction::setToolTip(const QString &tip)

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

setVisible

Signature: void setVisible (bool arg1)

Description: Method void QAction::setVisible(bool)

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

setWhatsThis

Signature: void setWhatsThis (string what)

Description: Method void QAction::setWhatsThis(const QString &what)

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

shortcut

Signature: [const] QKeySequence shortcut

Description: Method QKeySequence QAction::shortcut()

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

shortcut=

Signature: void shortcut= (const QKeySequence shortcut)

Description: Method void QAction::setShortcut(const QKeySequence &shortcut)

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

shortcutContext

Signature: [const] Qt_ShortcutContext shortcutContext

Description: Method Qt::ShortcutContext QAction::shortcutContext()

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

shortcutContext=

Signature: void shortcutContext= (const Qt_ShortcutContext context)

Description: Method void QAction::setShortcutContext(Qt::ShortcutContext context)

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

shortcuts

Signature: [const] QKeySequence[] shortcuts

Description: Method QList<QKeySequence> QAction::shortcuts()

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

shortcuts=

(1) Signature: void shortcuts= (QKeySequence[] shortcuts)

Description: Method void QAction::setShortcuts(const QList<QKeySequence> &shortcuts)

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

(2) Signature: void shortcuts= (const QKeySequence_StandardKey arg1)

Description: Method void QAction::setShortcuts(QKeySequence::StandardKey)

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

showStatusText

Signature: bool showStatusText (QWidget ptr widget = 0)

Description: Method bool QAction::showStatusText(QWidget *widget)

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

statusTip

Signature: [const] string statusTip

Description: Method QString QAction::statusTip()

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

statusTip=

Signature: void statusTip= (string statusTip)

Description: Method void QAction::setStatusTip(const QString &statusTip)

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

text

Signature: [const] string text

Description: Method QString QAction::text()

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

text=

Signature: void text= (string text)

Description: Method void QAction::setText(const QString &text)

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

timerEvent

Signature: void timerEvent (QTimerEvent ptr arg1)

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

This method can be reimplemented in a derived class.

toggle

Signature: void toggle

Description: Method void QAction::toggle()

toggled

Signature: [signal] void toggled (bool arg1)

Description: Signal declaration for QAction::toggled(bool)

You can bind a procedure to this signal.

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

toolTip

Signature: [const] string toolTip

Description: Method QString QAction::toolTip()

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

toolTip=

Signature: void toolTip= (string tip)

Description: Method void QAction::setToolTip(const QString &tip)

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

tr

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

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

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

trUtf8

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

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

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

trigger

Signature: void trigger

Description: Method void QAction::trigger()

triggered

Signature: [signal] void triggered (bool checked)

Description: Signal declaration for QAction::triggered(bool checked)

You can bind a procedure to this signal.

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

visible

Signature: [const] bool visible

Description: Method bool QAction::isVisible()

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

visible=

Signature: void visible= (bool arg1)

Description: Method void QAction::setVisible(bool)

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

whatsThis

Signature: [const] string whatsThis

Description: Method QString QAction::whatsThis()

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

whatsThis=

Signature: void whatsThis= (string what)

Description: Method void QAction::setWhatsThis(const QString &what)

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