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
qqmlpropertyvalueinterceptor_p.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 QQMLPROPERTYVALUEINTERCEPTOR_P_H
5#define QQMLPROPERTYVALUEINTERCEPTOR_P_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 <private/qtqmlglobal_p.h>
19#include <private/qqmlpropertyindex_p.h>
20#include <QtCore/qobject.h>
21#include <QtCore/qproperty.h>
22
24
25class QQmlProperty;
27{
28public:
31 virtual void setTarget(const QQmlProperty &property) = 0;
32 virtual void write(const QVariant &value) = 0;
33 virtual bool bindable(QUntypedBindable *bindable, QUntypedBindable target);
34
35private:
37
38 QQmlPropertyIndex m_propertyIndex;
40};
41
42#define QQmlPropertyValueInterceptor_iid "org.qt-project.Qt.QQmlPropertyValueInterceptor"
43
45
47
48#endif // QQMLPROPERTYVALUEINTERCEPTOR_P_H
The QQmlPropertyValueInterceptor class is inherited by property interceptors such as Behavior.
virtual void write(const QVariant &value)=0
This method will be called when a new value is assigned to the property being intercepted.
virtual void setTarget(const QQmlProperty &property)=0
Set the target property for the value interceptor.
The QQmlProperty class abstracts accessing properties on objects created from QML.
\inmodule QtCore
Definition qproperty.h:679
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_INTERFACE(IFace, IId)
Definition qobject.h:460
GLenum target
#define QQmlPropertyValueInterceptor_iid
const char property[13]
Definition qwizard.cpp:101