Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
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_EXPORT QQuickPackage : public QObject
28{
30 Q_DECLARE_PRIVATE(QQuickPackage)
31
32 Q_CLASSINFO("DefaultProperty", "data")
33 QML_NAMED_ELEMENT(Package)
37
38public:
39 QQuickPackage(QObject *parent=nullptr);
40
42
43 QObject *part(const QString & = QString());
44 bool hasPart(const QString &);
45
46 static QQuickPackageAttached *qmlAttachedProperties(QObject *);
47};
48
50{
53public:
55 virtual ~QQuickPackageAttached();
56
57 QString name() const;
58 void setName(const QString &n);
59
60 static QHash<QObject *, QQuickPackageAttached *> attached;
61private:
62 QString _name;
63};
64
66
67#endif // QQUICKPACKAGE_H
\inmodule QtCore
Definition qobject.h:103
The QQmlListProperty class allows applications to expose list-like properties of QObject-derived clas...
Definition qqmllist.h:24
static QHash< QObject *, QQuickPackageAttached * > attached
\qmltype Package \instantiates QQuickPackage \inqmlmodule QtQml.Models
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
employee setName("Richard Schmit")
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint name
GLfloat n
#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)