87 int idx =
index.row();
90 qWarning(
"That's not supposed to happen...");
129 if (
index >= m_count)
134void InstanceModel::ensureTable()
const
137 that->m_instanceData = m_instancing->
instanceBuffer(&that->m_count);
140void InstanceModel::reset()
142 m_instanceData.
clear();
189 return m_model ? m_model->
instancing() :
nullptr;
int rowCount(const QModelIndex &parent) const override
Returns the number of rows under the given parent.
InstanceModel(QObject *parent=nullptr)
\qmltype InstanceModel \inherits Object3D \inqmlmodule QtQuick3D.Helpers
QVariant data(const QModelIndex &index, int role) const override
Returns the data stored under the given role for the item referred to by the index.
void setInstancing(QQuick3DInstancing *instancing)
const QQuick3DInstancing::InstanceTableEntry * instanceData(int index) const
QQuick3DInstancing * instancing() const
QQuick3DInstancing * instancing() const
void setInstancing(QQuick3DInstancing *instancing)
InstanceRepeater(QQuick3DNode *parent=nullptr)
\qmltype InstanceRepeater \inherits Repeater3D \inqmlmodule QtQuick3D.Helpers
void initDelegate(int index, QQuick3DNode *node) override
char * data()
\macro QT_NO_CAST_FROM_BYTEARRAY
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
void clear()
Clears the contents of the byte array and makes it null.
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
static bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *member)
\threadsafe
\inmodule QtQuick3D \inherits QQuick3DObject
QByteArray instanceBuffer(int *instanceCount)
void instanceTableChanged()
void setRotation(const QQuaternion &rotation)
void setScale(const QVector3D &scale)
void setPosition(const QVector3D &position)
void setModel(const QVariant &)
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
Combined button and popup list for selecting options.
QVector3D getScale() const
QQuaternion getRotation() const
QVector3D getPosition() const
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent