7#include <QtGui/qstylehints.h>
8#include <QtGui/qguiapplication.h>
21#if QT_CONFIG(accessibility)
22#include <QtQuick/private/qquickaccessibleattached_p.h>
125#if QT_CONFIG(accessibility)
126 QAccessible::installActivationObserver(
this);
140#if QT_CONFIG(quicktemplates2_multitouch)
175#if QT_CONFIG(quicktemplates2_hover)
187 bool accepted =
true;
214 emit q->topPaddingChanged();
215 emit q->availableHeightChanged();
227 emit q->leftPaddingChanged();
228 emit q->availableWidthChanged();
240 emit q->rightPaddingChanged();
241 emit q->availableWidthChanged();
253 emit q->bottomPaddingChanged();
254 emit q->availableHeightChanged();
269 emit q->leftPaddingChanged();
271 emit q->rightPaddingChanged();
272 emit q->horizontalPaddingChanged();
273 emit q->availableWidthChanged();
274 q->paddingChange(newPadding, oldPadding);
288 emit q->topPaddingChanged();
290 emit q->bottomPaddingChanged();
291 emit q->verticalPaddingChanged();
292 emit q->availableHeightChanged();
293 q->paddingChange(newPadding, oldPadding);
304 emit q->topInsetChanged();
316 emit q->leftInsetChanged();
328 emit q->rightInsetChanged();
340 emit q->bottomInsetChanged();
353 bool changeWidth =
false;
354 bool changeHeight =
false;
356 || (
extra.isAllocated() && (
extra->hasLeftInset ||
extra->hasRightInset))) {
358 changeWidth = !
p->width.hasBinding();
361 || (
extra.isAllocated() && (
extra->hasTopInset ||
extra->hasBottomInset))) {
363 changeHeight = !
p->height.hasBinding();
365 if (changeHeight || changeWidth) {
366 auto newWidth = changeWidth ?
368 p->width.valueBypassingBindings();
369 auto newHeight = changeHeight ?
371 p->height.valueBypassingBindings();
407 if (oldContentItem) {
415 q->contentItemChange(
item, oldContentItem);
435 emit q->contentItemChanged();
454 emit q->implicitContentWidthChanged();
463 emit q->implicitContentHeightChanged();
474 emit q->implicitContentWidthChanged();
476 emit q->implicitContentHeightChanged();
484#if QT_CONFIG(accessibility)
485void QQuickControlPrivate::accessibilityActiveChanged(
bool active)
488 return q->accessibilityActiveChanged(active);
491QAccessible::Role QQuickControlPrivate::accessibleRole()
const
494 return q->accessibleRole();
497QQuickAccessibleAttached *QQuickControlPrivate::accessibleAttached(
const QObject *
object)
499 if (!QAccessible::isActive())
501 return QQuickAccessibleAttached::attachedProperties(
object);
518 return label->QQuickText::font();
520 return textField->QQuickTextInput::font();
522 return textArea->QQuickTextEdit::font();
553 const QFont defaultFont =
q->defaultFont();
571 q->fontChange(
font, oldFont);
576 emit q->fontChanged();
600 if (
const QQuickControl *control = qobject_cast<const QQuickControl *>(
p))
601 return control->locale();
604 if (
v.isValid() &&
v.userType() == QMetaType::QLocale)
635 static const bool ignoreWarnings = [](){
642 || (
item &&
item->property(
"__ignoreNotCustomizable").toBool()))
645 qmlWarning(
item ?
item : control).nospace() <<
"The current style does not support customization of this control "
646 <<
"(property: " << propertyName <<
" item: " <<
item <<
"). "
647 "Please customize a non-native style (such as Basic, Fusion, Material, etc). For more information, see: "
648 "https://doc.qt.io/qt-6/qtquickcontrols2-customize.html#customization-reference";
661 q->localeChange(l, old);
663 emit q->localeChanged();
678#if QT_CONFIG(quicktemplates2_hover)
679void QQuickControlPrivate::updateHoverEnabled(
bool enabled,
bool xplicit)
682 if (!xplicit && explicitHoverEnabled)
685 bool wasEnabled =
q->isHoverEnabled();
686 explicitHoverEnabled = xplicit;
689 QQuickControlPrivate::updateHoverEnabledRecur(
q,
enabled);
690 emit q->hoverEnabledChanged();
705bool QQuickControlPrivate::calcHoverEnabled(
const QQuickItem *
item)
712 if (qobject_cast<const QQuickPopupItem *>(
p))
715 if (
const QQuickControl *control = qobject_cast<const QQuickControl *>(
p))
716 return control->isHoverEnabled();
719 if (
v.isValid() &&
v.userType() == QMetaType::Bool)
786 qCDebug(lcItemManagement) <<
"hiding old item" <<
item;
791#if QT_CONFIG(accessibility)
793 QQuickAccessibleAttached *accessible = accessibleAttached(
item);
795 accessible->setIgnored(
true);
821 qCDebug(lcItemManagement) <<
"unhiding old item" <<
item;
826#if QT_CONFIG(accessibility)
828 QQuickAccessibleAttached *accessible = accessibleAttached(
item);
830 accessible->setIgnored(
false);
837 if (
extra.isAllocated() &&
extra.value().hasBaselineOffset)
841 q->QQuickItem::setBaselineOffset(0);
858 if (!
item || !listener)
865 if (!
item || !listener)
874 emit q->implicitBackgroundWidthChanged();
883 emit q->implicitBackgroundHeightChanged();
898 extra.value().hasBackgroundWidth =
p->widthValid();
900 extra.value().hasBackgroundHeight =
p->heightValid();
909 emit q->implicitBackgroundWidthChanged();
910 emit q->implicitBackgroundHeightChanged();
921 q->setFocusReason(reason);
942 d->removeImplicitSizeListener(
d->contentItem);
945#if QT_CONFIG(accessibility)
946 QAccessible::removeActivationObserver(
d);
959#if QT_CONFIG(quicktemplates2_hover)
960 if (!
value.boolValue)
970#if QT_CONFIG(quicktemplates2_hover)
971 if (!
d->explicitHoverEnabled)
972 d->updateHoverEnabled(QQuickControlPrivate::calcHoverEnabled(
d->parentItem),
false);
1041 if (
d->extra.value().requestedFont.resolveMask() ==
font.
resolveMask() &&
d->extra.value().requestedFont ==
font)
1044 d->extra.value().requestedFont =
font;
1132 const QMarginsF oldPadding =
d->getPadding();
1133 const qreal oldVerticalPadding =
d->getVerticalPadding();
1134 const qreal oldHorizontalPadding =
d->getHorizontalPadding();
1139 const QMarginsF newPadding =
d->getPadding();
1140 const qreal newVerticalPadding =
d->getVerticalPadding();
1141 const qreal newHorizontalPadding =
d->getHorizontalPadding();
1152 emit verticalPaddingChanged();
1153 if (!
qFuzzyCompare(newHorizontalPadding, oldHorizontalPadding))
1154 emit horizontalPaddingChanged();
1179 return d->getTopPadding();
1191 d->setTopPadding(0,
true);
1205 return d->getLeftPadding();
1217 d->setLeftPadding(0,
true);
1231 return d->getRightPadding();
1243 d->setRightPadding(0,
true);
1257 return d->getBottomPadding();
1269 d->setBottomPadding(0,
true);
1295 qreal oldSpacing =
d->spacing;
1330 if (
d->hasLocale &&
d->locale ==
locale)
1333 d->updateLocale(
locale,
true);
1342 d->hasLocale =
false;
1363 return d->isMirrored();
1408 return d->focusReason;
1414 if (
d->focusReason == reason)
1418 d->focusReason = reason;
1454#if QT_CONFIG(quicktemplates2_hover)
1464#if QT_CONFIG(quicktemplates2_hover)
1494#if QT_CONFIG(quicktemplates2_hover)
1496 return d->hoverEnabled;
1504#if QT_CONFIG(quicktemplates2_hover)
1506 if (
d->explicitHoverEnabled &&
enabled ==
d->hoverEnabled)
1509 d->updateHoverEnabled(
enabled,
true);
1517#if QT_CONFIG(quicktemplates2_hover)
1519 if (!
d->explicitHoverEnabled)
1522 d->explicitHoverEnabled =
false;
1523 d->updateHoverEnabled(QQuickControlPrivate::calcHoverEnabled(
d->parentItem),
false);
1539 return d->wheelEnabled;
1578 d->executeBackground();
1579 return d->background;
1590 if (!
d->background.isExecuting())
1591 d->cancelBackground();
1596 if (
d->extra.isAllocated()) {
1597 d->extra.value().hasBackgroundWidth =
false;
1598 d->extra.value().hasBackgroundHeight =
false;
1610 if (
p->widthValid() ||
p->heightValid()) {
1611 d->extra.value().hasBackgroundWidth =
p->widthValid();
1612 d->extra.value().hasBackgroundHeight =
p->heightValid();
1615 d->resizeBackground();
1620 emit implicitBackgroundWidthChanged();
1622 emit implicitBackgroundHeightChanged();
1623 if (!
d->background.isExecuting())
1660 if (!
d->contentItem)
1661 d->setContentItem_helper(
d->getContentItem(),
false);
1662 return d->contentItem;
1668 d->setContentItem_helper(
item,
true);
1674 return d->baselineOffset;
1680 d->extra.value().hasBaselineOffset =
true;
1687 if (!
d->extra.isAllocated() || !
d->extra.value().hasBaselineOffset)
1690 if (
d->extra.isAllocated())
1691 d->extra.value().hasBaselineOffset =
false;
1692 d->updateBaselineOffset();
1707 return d->getHorizontalPadding();
1719 d->setHorizontalPadding(0,
true);
1734 return d->getVerticalPadding();
1746 d->setVerticalPadding(0,
true);
1774 return d->implicitContentWidth;
1802 return d->implicitContentHeight;
1831 return d->background->implicitWidth();
1860 return d->background->implicitHeight();
1874 return d->getTopInset();
1880 d->setTopInset(inset);
1886 d->setTopInset(0,
true);
1900 return d->getLeftInset();
1906 d->setLeftInset(inset);
1912 d->setLeftInset(0,
true);
1926 return d->getRightInset();
1932 d->setRightInset(inset);
1938 d->setRightInset(0,
true);
1952 return d->getBottomInset();
1958 d->setBottomInset(inset);
1964 d->setBottomInset(0,
true);
1977 d->executeBackground(
true);
1978 d->executeContentItem(
true);
1980 d->resizeBackground();
1982 d->updateBaselineOffset();
1985#if QT_CONFIG(quicktemplates2_hover)
1986 if (!
d->explicitHoverEnabled)
1989#if QT_CONFIG(accessibility)
1990 if (QAccessible::isActive())
1991 accessibilityActiveChanged(
true);
2012#if QT_CONFIG(quicktemplates2_hover)
2037 event->setAccepted(
d->handlePress(
event->position(),
event->timestamp()));
2043 event->setAccepted(
d->handleMove(
event->position(),
event->timestamp()));
2049 event->setAccepted(
d->handleRelease(
event->position(),
event->timestamp()));
2058#if QT_CONFIG(quicktemplates2_multitouch)
2062 switch (
event->type()) {
2067 if (!
d->acceptTouch(point))
2070 switch (point.
state()) {
2103#if QT_CONFIG(wheelevent)
2104void QQuickControl::wheelEvent(QWheelEvent *
event)
2110 event->setAccepted(
d->wheelEnabled);
2118 d->resizeBackground();
2136#if QT_CONFIG(quicktemplates2_hover)
2137void QQuickControl::hoverChange()
2159 d->updateBaselineOffset();
2179 d->resizeBackground();
2182#if QT_CONFIG(accessibility)
2183QAccessible::Role QQuickControl::accessibleRole()
const
2185 return QAccessible::NoRole;
2188void QQuickControl::accessibilityActiveChanged(
bool active)
2194 QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(
this,
true));
2196 accessibleAttached->setRole(
d->effectiveAccessibleRole());
2202#if QT_CONFIG(accessibility)
2204 return accessibleAttached->name();
2211#if QT_CONFIG(accessibility)
2213 if (!accessibleAttached->wasNameExplicitlySet())
2214 accessibleAttached->setNameImplicitly(
name);
2223#if QT_CONFIG(accessibility)
2224 if (QAccessible::isActive())
2225 return QQuickAccessibleAttached::property(
this, propertyName);
2233#if QT_CONFIG(accessibility)
2234 if (QAccessible::isActive())
2235 return QQuickAccessibleAttached::setProperty(
this, propertyName,
value);
2244#include "moc_qquickcontrol_p.cpp"
The QEventPoint class provides information about a point in a QPointerEvent.
int id
the ID number of this event point.
State state
the current state of the event point.
QPointF position
the position of this point.
The QFocusEvent class contains event parameters for widget focus events.
QFont resolve(const QFont &) const
Returns a new QFont that has attributes copied from other that have not been previously set on this f...
void setResolveMask(uint mask)
QList< QGraphicsItem * > childItems() const
QGraphicsWidget * window() const
void setParentItem(QGraphicsItem *parent)
Sets this item's parent item to newParent.
QGraphicsItem * parentItem() const
Returns a pointer to this item's parent item.
void setVisible(bool visible)
If visible is true, the item is made visible.
static QStyleHints * styleHints()
Returns the application's style hints.
constexpr qreal right() const noexcept
Returns the right margin.
constexpr qreal left() const noexcept
Returns the left margin.
constexpr qreal top() const noexcept
Returns the top margin.
constexpr qreal bottom() const noexcept
Returns the bottom margin.
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 QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
QVariant property(const char *name) const
Returns the value of the object's name property.
The QPalette class contains color groups for each widget state.
\inmodule QtCore\reentrant
void mirrorChange() override
void itemImplicitWidthChanged(QQuickItem *item) override
void updateImplicitContentSize()
QQuickDeferredPointer< QQuickItem > background
virtual void resizeBackground()
static QLocale calcLocale(const QQuickItem *item)
void setTopPadding(qreal value, bool reset=false)
void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override
static void unhideOldItem(QQuickControl *control, QQuickItem *item, UnhideVisibility visibility=UnhideVisibility::Show)
void setFont_helper(const QFont &font)
void itemFocusChanged(QQuickItem *item, Qt::FocusReason reason) override
virtual bool handlePress(const QPointF &point, ulong timestamp)
QQuickDeferredPointer< QQuickItem > contentItem
virtual QQuickItem * getContentItem()
void setLeftInset(qreal value, bool reset=false)
void updateBaselineOffset()
void removeImplicitSizeListener(QQuickItem *item, ChangeTypes changes=ImplicitSizeChanges)
virtual void executeContentItem(bool complete=false)
void setHorizontalPadding(qreal value, bool reset=false)
qreal getRightInset() const
void setVerticalPadding(qreal value, bool reset=false)
void setBottomPadding(qreal value, bool reset=false)
qreal getLeftInset() const
static const ChangeTypes ImplicitSizeChanges
Abstract base type providing functionality common to all controls.
virtual void cancelContentItem()
static void updateLocaleRecur(QQuickItem *item, const QLocale &l)
void setTopInset(qreal value, bool reset=false)
void updateImplicitContentWidth()
void inheritFont(const QFont &font)
void addImplicitSizeListener(QQuickItem *item, ChangeTypes changes=ImplicitSizeChanges)
bool hasHorizontalPadding
qreal getTopPadding() const
static void hideOldItem(QQuickItem *item)
void setRightPadding(qreal value, bool reset=false)
qreal getBottomInset() const
void setContentItem_helper(QQuickItem *item, bool notify=true)
QLazilyAllocated< ExtraData > extra
qreal getHorizontalPadding() const
virtual void handleUngrab()
void updateFont(const QFont &font)
void setLeftPadding(qreal value, bool reset=false)
QMarginsF getPadding() const
virtual bool handleRelease(const QPointF &point, ulong timestamp)
virtual void resolveFont()
qreal implicitContentWidth
void updateImplicitContentHeight()
static QFont parentFont(const QQuickItem *item)
virtual qreal getContentWidth() const
static void warnIfCustomizationNotSupported(QObject *control, QQuickItem *item, const QString &propertyName)
QMarginsF getInset() const
qreal implicitContentHeight
QPalette defaultPalette() const override
virtual void cancelBackground()
qreal getVerticalPadding() const
void updateLocale(const QLocale &l, bool e)
virtual void executeBackground(bool complete=false)
qreal getTopInset() const
void setBottomInset(qreal value, bool reset=false)
void setRightInset(qreal value, bool reset=false)
void itemDestroyed(QQuickItem *item) override
virtual qreal getContentHeight() const
virtual void resizeContent()
virtual bool handleMove(const QPointF &point, ulong timestamp)
static QQuickControlPrivate * get(QQuickControl *control)
void itemImplicitHeightChanged(QQuickItem *item) override
static void updateFontRecur(QQuickItem *item, const QFont &font)
Qt::FocusPolicy focusPolicy
void focusInEvent(QFocusEvent *event) override
This event handler can be reimplemented in a subclass to receive focus-in events for an item.
QQuickControl(QQuickItem *parent=nullptr)
void mouseReleaseEvent(QMouseEvent *event) override
This event handler can be reimplemented in a subclass to receive mouse release events for an item.
void visualFocusChanged()
Qt::FocusPolicy focusPolicy
void setFocusReason(Qt::FocusReason reason)
void setTopPadding(qreal padding)
void setWheelEnabled(bool enabled)
void setFont(const QFont &font)
qreal implicitBackgroundHeight
void setBottomInset(qreal inset)
void focusReasonChanged()
virtual QFont defaultFont() const
void availableWidthChanged()
virtual void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
void setHoverEnabled(bool enabled)
void focusPolicyChanged()
virtual void spacingChange(qreal newSpacing, qreal oldSpacing)
void maybeSetAccessibleName(const QString &name)
virtual void localeChange(const QLocale &newLocale, const QLocale &oldLocale)
void setLeftInset(qreal inset)
void setSpacing(qreal spacing)
virtual void insetChange(const QMarginsF &newInset, const QMarginsF &oldInset)
void wheelEnabledChanged()
void setFocusPolicy(Qt::FocusPolicy policy)
QVariant accessibleProperty(const char *propertyName)
void baselineOffsetChanged()
void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry) override
void setRightInset(qreal inset)
bool isWheelEnabled() const
\qmlproperty bool QtQuick.Controls::Control::wheelEnabled
qreal implicitBackgroundWidth
void setPadding(qreal padding)
bool hasVisualFocus() const
\qmlproperty bool QtQuick.Controls::Control::visualFocus \readonly
void rightPaddingChanged()
void setHorizontalPadding(qreal padding)
void bottomPaddingChanged()
void resetBaselineOffset()
virtual void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
void setHovered(bool hovered)
void setVerticalPadding(qreal padding)
qreal implicitContentWidth
void classBegin() override
Invoked after class creation, but before any properties have been set.
void resetHorizontalPadding()
void leftPaddingChanged()
void itemChange(ItemChange change, const ItemChangeData &value) override
Called when change occurs for this item.
void setBackground(QQuickItem *background)
void mousePressEvent(QMouseEvent *event) override
This event handler can be reimplemented in a subclass to receive mouse press events for an item.
void setContentItem(QQuickItem *item)
bool isHovered() const
\qmlproperty bool QtQuick.Controls::Control::hovered \readonly
bool setAccessibleProperty(const char *propertyName, const QVariant &value)
void setRightPadding(qreal padding)
QString accessibleName() const
void focusOutEvent(QFocusEvent *event) override
This event handler can be reimplemented in a subclass to receive focus-out events for an item.
void setBottomPadding(qreal padding)
bool isMirrored() const
\qmlproperty bool QtQuick.Controls::Control::mirrored \readonly
qreal implicitContentHeight
void setBaselineOffset(qreal offset)
virtual void enabledChange()
void setTopInset(qreal inset)
void resetVerticalPadding()
bool isHoverEnabled() const
\qmlproperty bool QtQuick.Controls::Control::hoverEnabled
void mouseMoveEvent(QMouseEvent *event) override
This event handler can be reimplemented in a subclass to receive mouse move events for an item.
virtual void fontChange(const QFont &newFont, const QFont &oldFont)
Qt::FocusReason focusReason
void availableHeightChanged()
void setLocale(const QLocale &locale)
void resetBottomPadding()
virtual void mirrorChange()
void mouseUngrabEvent() override
This event handler can be reimplemented in a subclass to be notified when a mouse ungrab event has oc...
void setLeftPadding(qreal padding)
bool heightChange() const
void removeItemChangeListener(QQuickItemChangeListener *, ChangeTypes types)
void addItemChangeListener(QQuickItemChangeListener *listener, ChangeTypes types)
quint32 componentComplete
static QQuickItemPrivate * get(QQuickItem *item)
QList< QQuickItem * > childItems
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
virtual void focusOutEvent(QFocusEvent *)
This event handler can be reimplemented in a subclass to receive focus-out events for an item.
void baselineOffsetChanged(qreal)
virtual void hoverEnterEvent(QHoverEvent *event)
This event handler can be reimplemented in a subclass to receive hover-enter events for an item.
void classBegin() override
\reimp Derived classes should call the base class method before adding their own action to perform at...
void setSize(const QSizeF &size)
virtual void geometryChange(const QRectF &newGeometry, const QRectF &oldGeometry)
qreal x
\qmlproperty real QtQuick::Item::x \qmlproperty real QtQuick::Item::y \qmlproperty real QtQuick::Item...
void setParentItem(QQuickItem *parent)
qreal z
\qmlproperty real QtQuick::Item::z
void componentComplete() override
\reimp Derived classes should call the base class method before adding their own actions to perform a...
void setAcceptHoverEvents(bool enabled)
If enabled is true, this sets the item to accept hover events; otherwise, hover events are not accept...
virtual void hoverMoveEvent(QHoverEvent *event)
This event handler can be reimplemented in a subclass to receive hover-move events for an item.
qreal y
Defines the item's y position relative to its parent.
bool activeFocusOnTab() const
\qmlproperty bool QtQuick::Item::activeFocusOnTab
qreal baselineOffset() const
\qmlproperty int QtQuick::Item::baselineOffset
virtual Q_INVOKABLE bool contains(const QPointF &point) const
\qmlmethod bool QtQuick::Item::contains(point point)
void setBaselineOffset(qreal)
qreal width
This property holds the width of this item.
virtual void itemChange(ItemChange, const ItemChangeData &)
Called when change occurs for this item.
bool isComponentComplete() const
Returns true if construction of the QML component is complete; otherwise returns false.
virtual void touchUngrabEvent()
This event handler can be reimplemented in a subclass to be notified when a touch ungrab event has oc...
Q_INVOKABLE void forceActiveFocus()
\qmlmethod point QtQuick::Item::mapToItem(Item item, real x, real y) \qmlmethod point QtQuick::Item::...
virtual void touchEvent(QTouchEvent *event)
This event handler can be reimplemented in a subclass to receive touch events for an item.
qreal height
This property holds the height of this item.
void setPosition(const QPointF &)
ItemChange
Used in conjunction with QQuickItem::itemChange() to notify the item about certain types of changes.
@ ItemActiveFocusHasChanged
virtual void focusInEvent(QFocusEvent *)
This event handler can be reimplemented in a subclass to receive focus-in events for an item.
friend class QQuickAccessibleAttached
bool enabled
\qmlproperty bool QtQuick::Item::enabled
virtual void hoverLeaveEvent(QHoverEvent *event)
This event handler can be reimplemented in a subclass to receive hover-leave events for an item.
void setActiveFocusOnTab(bool)
void inheritFont(const QFont &font)
static QQuickLabelPrivate * get(QQuickLabel *item)
void inheritFont(const QFont &font)
static QQuickTextAreaPrivate * get(QQuickTextArea *item)
static QQuickTextFieldPrivate * get(QQuickTextField *item)
void inheritFont(const QFont &font)
static QPalette palette(Scope scope)
static QFont font(Scope scope)
static QQuickWindowPrivate * get(QQuickWindow *c)
void clearFocusInScope(QQuickItem *scope, QQuickItem *item, Qt::FocusReason reason)
\inmodule QtCore\reentrant
constexpr qreal height() const noexcept
Returns the height of the rectangle.
constexpr qreal width() const noexcept
Returns the width of the rectangle.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool useHoverEffects
whether UI elements use hover effects.
The QTouchEvent class contains parameters that describe a touch event.
QLocale toLocale() const
Returns the variant as a QLocale if the variant has userType() \l QMetaType::QLocale; otherwise retur...
bool toBool() const
Returns the variant as a bool if the variant has userType() Bool.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
bool qFuzzyCompare(qfloat16 p1, qfloat16 p2) noexcept
bool qFuzzyIsNull(qfloat16 f) noexcept
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
GLsizei const GLfloat * v
[13]
GLint GLsizei GLsizei height
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLuint GLsizei const GLchar * label
[43]
GLenum GLuint GLintptr offset
GLfixed GLfixed GLint GLint GLfixed points
GLdouble GLdouble GLdouble GLdouble q
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
static bool isKeyFocusReason(Qt::FocusReason reason)
static void setActiveFocus(QQuickControl *control, Qt::FocusReason reason)
static QString contentItemName()
void quickCancelDeferred(QObject *object, const QString &property)
void quickCompleteDeferred(QObject *object, const QString &property, QQuickDeferredPointer< T > &delegate)
void quickBeginDeferred(QObject *object, const QString &property, QQuickDeferredPointer< T > &delegate)
#define QStringLiteral(str)
Q_CORE_EXPORT int qEnvironmentVariableIntValue(const char *varName, bool *ok=nullptr) noexcept
static QString backgroundName()
myObject disconnect()
[26]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent