Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qqmlwatcher.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
4
#ifndef QQMLWATCHER_H
5
#define QQMLWATCHER_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/qobject.h>
19
#include <QtCore/qlist.h>
20
#include <QtCore/qpair.h>
21
#include <QtCore/qhash.h>
22
#include <QtCore/qset.h>
23
#include <QtCore/qpointer.h>
24
25
QT_BEGIN_NAMESPACE
26
27
class
QQmlWatchProxy
;
28
class
QQmlExpression
;
29
class
QQmlContext
;
30
class
QMetaProperty
;
31
32
class
QQmlWatcher
:
public
QObject
33
{
34
Q_OBJECT
35
public
:
36
QQmlWatcher
(
QObject
* =
nullptr
);
37
38
bool
addWatch
(
int
id
,
quint32
objectId);
39
bool
addWatch
(
int
id
,
quint32
objectId,
const
QByteArray
&
property
);
40
bool
addWatch
(
int
id
,
quint32
objectId,
const
QString
&expr);
41
42
bool
removeWatch
(
int
id
);
43
44
Q_SIGNALS
:
45
void
propertyChanged
(
int
id
,
int
objectId,
const
QMetaProperty
&
property
,
const
QVariant
&
value
);
46
47
private
:
48
friend
class
QQmlWatchProxy
;
49
void
addPropertyWatch(
int
id
,
QObject
*
object
,
quint32
objectId,
const
QMetaProperty
&
property
);
50
51
QHash<int, QList<QPointer<QQmlWatchProxy>
> > m_proxies;
52
};
53
54
QT_END_NAMESPACE
55
56
#endif
// QQMLWATCHER_H
QByteArray
\inmodule QtCore
Definition
qbytearray.h:57
QHash
\inmodule QtCore
Definition
qhash.h:818
QMetaProperty
\inmodule QtCore
Definition
qmetaobject.h:322
QObject
\inmodule QtCore
Definition
qobject.h:90
QQmlContext
The QQmlContext class defines a context within a QML engine.
Definition
qqmlcontext.h:25
QQmlExpression
The QQmlExpression class evaluates JavaScript in a QML context.
Definition
qqmlexpression.h:22
QQmlWatchProxy
Definition
qqmlwatcher.cpp:21
QQmlWatcher
Definition
qqmlwatcher.h:33
QQmlWatcher::removeWatch
bool removeWatch(int id)
Definition
qqmlwatcher.cpp:136
QQmlWatcher::addWatch
bool addWatch(int id, quint32 objectId)
Definition
qqmlwatcher.cpp:95
QQmlWatcher::propertyChanged
void propertyChanged(int id, int objectId, const QMetaProperty &property, const QVariant &value)
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QVariant
\inmodule QtCore
Definition
qvariant.h:64
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
value
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition
qeglstreamconvenience_p.h:46
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
quint32
unsigned int quint32
Definition
qtypes.h:45
property
const char property[13]
Definition
qwizard.cpp:101
qtdeclarative
src
plugins
qmltooling
qmldbg_debugger
qqmlwatcher.h
Generated by
1.9.7