Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QQUICK3DRENDERSTATSMESHESMODEL_H
7
#
define
QQUICK3DRENDERSTATSMESHESMODEL_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists purely as an
14
// implementation detail. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
#
include
<
QtCore
/
QAbstractTableModel
>
21
#
include
<
QtCore
/
QObject
>
22
#
include
<
QtQml
/
qqml
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QQuick3DRenderStatsMeshesModel :
public
QAbstractTableModel
27
{
28
Q_OBJECT
29
Q_PROPERTY(QString meshData READ meshData WRITE setMeshData NOTIFY meshDataChanged)
30
QML_NAMED_ELEMENT(RenderStatsMeshesModel)
31
32
public
:
33
QHash<
int
, QByteArray> roleNames()
const
override;
34
int
rowCount(
const
QModelIndex &parent)
const
override;
35
int
columnCount(
const
QModelIndex &parent)
const
override;
36
QVariant data(
const
QModelIndex &index,
int
role)
const
override;
37
QVariant headerData(
int
section, Qt::Orientation orientation,
int
role)
const
override;
38
39
const
QString &meshData()
const
;
40
41
public
Q_SLOTS:
42
void
setMeshData(
const
QString &newMeshData);
43
44
Q_SIGNALS:
45
void
meshDataChanged();
46
47
private
:
48
struct
Data {
49
QString name;
50
quint64 submeshes;
51
quint64 vertices;
52
quint64 vertexBufferSize;
53
quint64 indexBufferSize;
54
};
55
QVector<Data> m_data;
56
QString m_meshData;
57
};
58
59
QT_END_NAMESPACE
60
61
#
endif
// QQUICK3DRENDERSTATSMESHESMODEL_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtquick3d
src
helpers
impl
qquick3drenderstatsmeshesmodel_p.h
Generated on
for Qt by
1.18.0