8#include <QtQml/qqmlinfo.h>
9#include <QtQml/qqmlengine.h>
10#include <QtQml/qqmlcomponent.h>
11#include <QtQml/qqmlincubator.h>
12#include <QtQml/private/qv4qobjectwrapper_p.h>
13#include <QtQml/private/qqmlcomponent_p.h>
14#include <QtQml/private/qqmlengine_p.h>
15#include <QtQml/private/qqmlincubator_p.h>
19#if QT_CONFIG(quick_viewtransitions)
22 QQuickStackViewAttached *attached = qobject_cast<QQuickStackViewAttached *>(qmlAttachedPropertiesObject<QQuickStackView>(element->
item,
false));
42 element->
incubate(
object, privIncubator->requiredProperties());
49QQuickStackElement::QQuickStackElement()
50#if QT_CONFIG(quick_viewtransitions)
58#if QT_CONFIG(quick_viewtransitions)
66#if QT_CONFIG(quick_viewtransitions)
121 element->
component = qobject_cast<QQmlComponent *>(
object);
122#if QT_CONFIG(quick_viewtransitions)
133#if QT_CONFIG(quick_viewtransitions)
142 if (
arg.mComponent) {
146 }
else if (
arg.mUrl.isValid()) {
150 qFatal(
"No Item, Component or URL set on arg passed to fromStrictArg");
222 if (requiredProperties && !requiredProperties->
empty()) {
224 for (
const auto &
property: *requiredProperties) {
243#if QT_CONFIG(quick_viewtransitions)
256#if QT_CONFIG(quick_viewtransitions)
269#if QT_CONFIG(quick_viewtransitions)
298#if QT_CONFIG(quick_viewtransitions)
311#if QT_CONFIG(quick_viewtransitions)
325 qmlWarning(
item) <<
"StackView has detected conflicting anchors. Transitions may not execute properly.";
329 nextTransitionToSet =
true;
330 nextTransitionFromSet =
true;
331 nextTransitionFrom +=
QPointF(1, 1);
344void QQuickStackElement::completeTransition(
QQuickTransition *quickTransition)
352#if QT_CONFIG(quick_viewtransitions)
bool empty() const noexcept
This function is provided for STL compatibility.
static void setObjectOwnership(QObject *, ObjectOwnership)
Sets the ownership of object.
QString arg(Args &&...args) const
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
void setParent(QObject *parent)
Makes the object a child of parent.
void deleteLater()
\threadsafe
\inmodule QtCore\reentrant
static QQmlComponentPrivate * get(QQmlComponent *c)
static void setInitialProperties(QV4::ExecutionEngine *engine, QV4::QmlContext *qmlContext, const QV4::Value &o, const QV4::Value &v, RequiredProperties *requiredProperties, QObject *createdComponent, QQmlObjectCreator *creator)
\qmlmethod QtObject Component::createObject(QtObject parent, object properties)
The QQmlComponent class encapsulates a QML component definition.
bool isError() const
Returns true if status() == QQmlComponent::Error.
bool isLoading() const
Returns true if status() == QQmlComponent::Loading.
QQmlContext * creationContext() const
Returns the QQmlContext the component was created in.
Q_INVOKABLE QString errorString() const
\qmlmethod string Component::errorString()
virtual QObject * create(QQmlContext *context=nullptr)
Create an object instance from this component, within the specified context.
void statusChanged(QQmlComponent::Status)
Emitted whenever the component's status changes.
The QQmlContext class defines a context within a QML engine.
QUrl resolvedUrl(const QUrl &) const
Resolves the URL src relative to the URL of the containing component.
static QV4::ExecutionEngine * getV4Engine(QQmlEngine *e)
The QQmlEngine class provides an environment for instantiating QML components.
static QQmlIncubatorPrivate * get(QQmlIncubator *incubator)
The QQmlIncubator class allows QML objects to be created asynchronously.
void removeItemChangeListener(QQuickItemChangeListener *, ChangeTypes types)
static QQuickItemPrivate * get(QQuickItem *item)
bool prepareTransition(QQuickItemViewTransitioner *transitioner, int index, const QRectF &viewBounds)
void startTransition(QQuickItemViewTransitioner *transitioner, int index)
void completeTransition(QQuickTransition *quickTransition)
void transitionNextReposition(QQuickItemViewTransitionableItem *item, QQuickItemViewTransitioner::TransitionType type, bool isTarget)
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
void setParentItem(QQuickItem *parent)
qreal width
This property holds the width of this item.
QQuickItem * parentItem() const
qreal height
This property holds the height of this item.
QQmlComponent * component
void itemDestroyed(QQuickItem *item) override
QPointer< QQuickItem > originalParent
void initialize(RequiredProperties *requiredProperties)
void setVisible(bool visible)
static QQuickStackElement * fromObject(QObject *object, QQuickStackView *view, QString *error)
void setStatus(QQuickStackView::Status status)
static QQuickStackElement * fromString(const QString &str, QQuickStackView *view, QString *error)
static QQuickStackElement * fromStackViewArg(QQuickStackView *view, QQuickStackViewArg arg)
QV4::PersistentValue properties
QQuickStackView::Status status
void setView(QQuickStackView *view)
bool load(QQuickStackView *parent)
void incubate(QObject *object, RequiredProperties *requiredProperties)
QV4::PersistentValue qmlCallingContext
QQuickStackIncubator(QQuickStackElement *element)
void setInitialState(QObject *object) override
Called after the object is first created, but before property bindings are evaluated and,...
void itemParentChanged(QQuickItem *item, QQuickItem *parent) override
static QQuickStackViewAttachedPrivate * get(QQuickStackViewAttached *attached)
QQuickStackElement * element
static QQuickStackViewPrivate * get(QQuickStackView *view)
void warn(const QString &error)
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
QString trimmed() const &
bool isRelative() const
Returns true if the URL is relative; otherwise returns false.
bool isValid() const
Returns true if the URL is non-empty and valid; otherwise returns false.
ReturnedValue value() const
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
QQmlEngine * qmlEngine(const QObject *obj)
QQmlContext * qmlContext(const QObject *obj)
QQuickItem * qmlobject_cast< QQuickItem * >(QObject *object)
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
QQuickAnchors * anchors(QQuickItem *item)
QQuickItem * qobject_cast< QQuickItem * >(QObject *o)
QLatin1StringView QLatin1String
#define QStringLiteral(str)
#define QT_CONFIG(feature)
QUrl url("example.com")
[constructor-url-reference]
static ReturnedValue wrap(ExecutionEngine *engine, QObject *object)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent