|
static bool | changeEnabled (QQuickAction *action, bool enabled) |
|
static void | actions_append (QQmlListProperty< QQuickAction > *prop, QQuickAction *obj) |
|
static qsizetype | actions_count (QQmlListProperty< QQuickAction > *prop) |
|
static QQuickAction * | actions_at (QQmlListProperty< QQuickAction > *prop, qsizetype index) |
|
static void | actions_clear (QQmlListProperty< QQuickAction > *prop) |
|
static bool | changeEnabled (QQuickAction *action, bool enabled) |
|
static void | actions_append (QQmlListProperty< QQuickAction > *prop, QQuickAction *obj) |
|
static qsizetype | actions_count (QQmlListProperty< QQuickAction > *prop) |
|
static QQuickAction * | actions_at (QQmlListProperty< QQuickAction > *prop, qsizetype index) |
|
static void | actions_clear (QQmlListProperty< QQuickAction > *prop) |
|
static bool | removeConnection (Connection *c) |
|
static QObjectPrivate * | get (QObject *o) |
|
static const QObjectPrivate * | get (const QObject *o) |
|
template<typename Func1 , typename Func2 > |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
|
template<typename Func1 , typename Func2 > |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
|
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
|
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
|
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
|
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
|
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
|
Groups actions together.
\qmltype ActionGroup
\inherits QtObject
! \nativetype QQuickActionGroup \inqmlmodule QtQuick.Controls
- Since
- 5.10
ActionGroup is a non-visual group of actions. A mutually \l exclusive action group is used with actions where only one of the options can be selected at a time.
The most straight-forward way to use ActionGroup is to declare actions as children of the group.
ActionGroup {
Action {
checked: true
checkable: true
}
Action {
checkable: true
}
checkable: true
}
}
Alternatively, the \l group attached property allows declaring the actions elsewhere and assigning them to a specific group.
ActionGroup {
id: alignmentGroup }
Action {
checked: true
checkable: true
ActionGroup.
group: alignmentGroup
}
Action {
checkable: true
ActionGroup.
group: alignmentGroup
}
Action {
checkable: true
ActionGroup.
group: alignmentGroup
}
GLboolean GLuint group
[0]
More advanced use cases can be handled using the addAction()
and removeAction()
methods.
- See also
- Action, ButtonGroup
\qmlsignal QtQuick.Controls::ActionGroup::triggered(Action action)
This signal is emitted when an action in the group has been triggered.
This signal is convenient for implementing a common signal handler for all actions in the same group.
ActionGroup {
onTriggered: console.log("triggered:", action.text)
Action {
text:
"Second" }
}
- See also
- Action::triggered()
Definition at line 109 of file qquickactiongroup.cpp.