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
qjsvalueiterator.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QJSVALUEITERATOR_H
6#define QJSVALUEITERATOR_H
7
8#include <QtQml/qjsvalue.h>
9#include <QtQml/qtqmlglobal.h>
10#include <QtCore/qscopedpointer.h>
11
12QT_BEGIN_NAMESPACE
13
14
15class QString;
16
17class QJSValueIteratorPrivate;
18class Q_QML_EXPORT QJSValueIterator
19{
20public:
21 QJSValueIterator(const QJSValue &value);
22 ~QJSValueIterator();
23
24 bool hasNext() const;
25 bool next();
26
27 QString name() const;
28
29 QJSValue value() const;
30 QJSValueIterator& operator=(QJSValue &value);
31
32private:
33 QScopedPointer<QJSValueIteratorPrivate> d_ptr;
34
35 Q_DECLARE_PRIVATE(QJSValueIterator)
36 Q_DISABLE_COPY(QJSValueIterator)
37};
38
39QT_END_NAMESPACE
40
41#endif // QJSVALUEITERATOR_H
The QJSValueIterator class provides a Java-style iterator for QJSValue.
Combined button and popup list for selecting options.