Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qquickpackage_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKPACKAGE_H
5#define QQUICKPACKAGE_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <qqml.h>
19#include <QtQmlModels/private/qtqmlmodelsglobal_p.h>
20
21QT_REQUIRE_CONFIG(qml_delegate_model);
22
24
27class Q_QMLMODELS_PRIVATE_EXPORT QQuickPackage : public QObject
28{
30 Q_DECLARE_PRIVATE(QQuickPackage)
31
32 Q_CLASSINFO("DefaultProperty", "data")
33 QML_NAMED_ELEMENT(Package)
37
38public:
40
42
43 QObject *part(const QString & = QString());
44 bool hasPart(const QString &);
45
46 static QQuickPackageAttached *qmlAttachedProperties(QObject *);
47};
48
50{
52Q_PROPERTY(QString name READ name WRITE setName FINAL)
53public:
55 virtual ~QQuickPackageAttached();
56
57 QString name() const;
58 void setName(const QString &n);
59
61private:
62 QString _name;
63};
64
66
68
69#endif // QQUICKPACKAGE_H
\inmodule QtCore
Definition qhash.h:818
\inmodule QtCore
Definition qobject.h:90
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:311
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition qqmllist.h:24
void setName(const QString &n)
static QHash< QObject *, QQuickPackageAttached * > attached
\qmltype Package \instantiates QQuickPackage \inqmlmodule QtQml.Models
QQmlListProperty< QObject > data()
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint name
GLfloat n
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define QML_ATTACHED(ATTACHED_TYPE)
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_CLASSINFO(name, value)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent