6#include <QtCore/private/qobject_p.h>
7#include <QtCore/qmetaobject.h>
8#include <QtCore/qvariant.h>
9#include <QtQml/qqmlinfo.h>
146 auto *attached = qobject_cast<QQuickButtonGroupAttached *>(
147 qmlAttachedPropertiesObject<QQuickButtonGroup>(
button,
false));
149 attached->setGroup(
nullptr);
175 q->setCheckedButton(
nullptr);
185 bool anyChecked =
false;
189 anyChecked |= isChecked;
190 allChecked &= isChecked;
202 emit q->checkStateChanged();
226 if (!
p->buttons.isEmpty()) {
231 emit q->buttonsChanged();
264 return d->checkedButton;
273 if (
d->checkedButton)
274 d->checkedButton->setChecked(
false);
346 emit exclusiveChanged();
371 return d->checkState;
380 d->settingCheckState =
true;
388 d->settingCheckState =
false;
417 d->updateCheckState();
442 if (
d->checkedButton ==
button)
446 d->updateCheckState();
460 if (!
d->buttons.isEmpty())
461 d->updateCheckState();
509 auto *
button = qobject_cast<QQuickAbstractButton *>(
parent());
511 d->group->removeButton(
button);
520#include "moc_qquickbuttongroup_p.cpp"
qsizetype size() const noexcept
bool isEmpty() const noexcept
T value(qsizetype i) const
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)
static bool disconnect(const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
QObject * parent() const
Returns a pointer to the parent object.
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Combined button and popup list for selecting options.
GLdouble GLdouble GLdouble GLdouble q
bool contains(const AT &t) const noexcept
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent