QList<QAbstractButton *>QAbstractButtonPrivate::queryButtonList() const { #ifndef QT_NO_BUTTONGROUP if (group) return group->d_func()->buttonList; #endif QList<QAbstractButton*>candidates = qFindChildren<QAbstractButton *>(parent); if (autoExclusive) { for (int i = candidates.count() - 1; i >= 0; --i) { QAbstractButton *candidate = candidates.at(i); if (!candidate->autoExclusive() #ifndef QT_NO_BUTTONGROUP || candidate->group() #endif ) candidates.removeAt(i); } } return candidates; }