![]() |
Qt 6.x
The Qt SDK
|
\qmltype Package \instantiates QQuickPackage \inqmlmodule QtQml.Models More...
Classes | |
struct | DataGuard |
Static Public Member Functions | |
static void | data_append (QQmlListProperty< QObject > *prop, QObject *o) |
static void | data_clear (QQmlListProperty< QObject > *prop) |
static QObject * | data_at (QQmlListProperty< QObject > *prop, qsizetype index) |
static qsizetype | data_count (QQmlListProperty< QObject > *prop) |
static void | data_replace (QQmlListProperty< QObject > *prop, qsizetype index, QObject *o) |
static void | data_removeLast (QQmlListProperty< QObject > *prop) |
![]() | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1 , typename Func2 > | |
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) |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Public Attributes | ||
QList< DataGuard > | dataList | |
![]() | ||
ExtraData * | extraData | |
QAtomicPointer< QThreadData > | threadData | |
QAtomicPointer< ConnectionData > | connections | |
union { | ||
QObject * currentChildBeingDeleted | ||
QAbstractDeclarativeData * declarativeData | ||
}; | ||
QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount | |
![]() | ||
QObject * | q_ptr | |
QObject * | parent | |
QObjectList | children | |
uint | isWidget: 1 | |
uint | blockSig: 1 | |
uint | wasDeleted: 1 | |
uint | isDeletingChildren: 1 | |
uint | sendChildEvents: 1 | |
uint | receiveChildEvents: 1 | |
uint | isWindow: 1 | |
uint | deleteLaterCalled: 1 | |
uint | isQuickItem: 1 | |
uint | willBeWidget: 1 | |
uint | wasWidget: 1 | |
uint | unused: 21 | |
QAtomicInt | postedEvents | |
QDynamicMetaObjectData * | metaObject | |
QBindingStorage | bindingStorage | |
Additional Inherited Members | |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
\qmltype Package \instantiates QQuickPackage \inqmlmodule QtQml.Models
Specifies a collection of named items.
The Package type is used in conjunction with DelegateModel to enable delegates with a shared context to be provided to multiple views.
Any item within a Package may be assigned a name via the \l{Package::name}{Package.name} attached property.
The example below creates a Package containing two named items; list and grid. The third item in the package (the \l Rectangle) is parented to whichever delegate it should appear in. This allows an item to move between views.
These named items are used as the delegates by the two views who reference the special \l{DelegateModel::parts} property to select a model which provides the chosen delegate.
\qmlattachedproperty string QtQml.Models::Package::name This attached property holds the name of an item within a Package.
Definition at line 50 of file qquickpackage.cpp.
|
inline |
Definition at line 53 of file qquickpackage.cpp.
|
inlinestatic |
Definition at line 69 of file qquickpackage.cpp.
References QList< T >::append(), QQmlListProperty< T >::data, list, and o.
|
inlinestatic |
Definition at line 77 of file qquickpackage.cpp.
References QList< T >::at(), QQmlListProperty< T >::data, and list.
|
inlinestatic |
Definition at line 73 of file qquickpackage.cpp.
References QList< T >::clear(), QQmlListProperty< T >::data, and list.
|
inlinestatic |
Definition at line 81 of file qquickpackage.cpp.
References QQmlListProperty< T >::data, list, and QList< T >::size().
|
inlinestatic |
Definition at line 89 of file qquickpackage.cpp.
References QQmlListProperty< T >::data, list, and QList< T >::removeLast().
|
inlinestatic |
Definition at line 85 of file qquickpackage.cpp.
References QQmlListProperty< T >::data, list, o, and QList< T >::replace().
Definition at line 68 of file qquickpackage.cpp.