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
qquick3drenderstatsmeshesmodel_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DRENDERSTATSMESHESMODEL_H
5#define QQUICK3DRENDERSTATSMESHESMODEL_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 <QtCore/QAbstractTableModel>
19#include <QtCore/QObject>
20#include <QtQml/qqml.h>
21
23
25{
28 QML_NAMED_ELEMENT(RenderStatsMeshesModel)
29
30public:
31 QHash<int, QByteArray> roleNames() const override;
32 int rowCount(const QModelIndex &parent) const override;
33 int columnCount(const QModelIndex &parent) const override;
34 QVariant data(const QModelIndex &index, int role) const override;
35 QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
36
37 const QString &meshData() const;
38
39public Q_SLOTS:
40 void setMeshData(const QString &newMeshData);
41
44
45private:
46 struct Data {
48 quint64 submeshes;
49 quint64 vertices;
50 quint64 vertexBufferSize;
51 quint64 indexBufferSize;
52 };
53 QVector<Data> m_data;
54 QString m_meshData;
55};
56
58
59#endif // QQUICK3DRENDERSTATSMESHESMODEL_H
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore
int rowCount(const QModelIndex &parent) const override
Returns the number of rows under the given parent.
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Returns the data for the given role and section in the header with the specified orientation.
QHash< int, QByteArray > roleNames() const override
int columnCount(const QModelIndex &parent) const override
Returns the number of columns for the children of the given parent.
void setMeshData(const QString &newMeshData)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
Orientation
Definition qnamespace.h:98
GLuint index
[2]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint name
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
unsigned long long quint64
Definition qtypes.h:61