Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmllistaccessor_p.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
// Qt-Security score:significant
4
5
#
ifndef
QQMLLISTACCESSOR_H
6
#
define
QQMLLISTACCESSOR_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
QVariant
>
20
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QQmlEngine;
25
class
Q_AUTOTEST_EXPORT
QQmlListAccessor
26
{
27
public
:
28
QQmlListAccessor();
29
~QQmlListAccessor();
30
31
QVariant list()
const
;
32
void
setList(
const
QVariant &);
33
34
bool
isValid()
const
;
35
36
qsizetype count()
const
;
37
QVariant at(qsizetype)
const
;
38
void
set(qsizetype,
const
QVariant &);
39
40
enum
Type {
41
Invalid,
42
StringList,
43
UrlList,
44
VariantList,
45
ObjectList,
46
ListProperty,
47
Instance,
48
Integer,
49
ObjectSequence,
50
ValueSequence,
51
};
52
53
Type type()
const
{
return
m_type; }
54
55
private
:
56
Type m_type;
57
QMetaSequence m_metaSequence;
58
QVariant d;
59
};
60
61
QT_END_NAMESPACE
62
63
#
endif
// QQMLLISTACCESSOR_H
QQmlListAccessor
Definition
qqmllistaccessor_p.h:26
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtdeclarative
src
qmlmodels
qqmllistaccessor_p.h
Generated on
for Qt by
1.14.0