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
QBindingStorage Class Reference

#include <qbindingstorage.h>

+ Collaboration diagram for QBindingStorage:

Public Member Functions

 QBindingStorage ()
 
 ~QBindingStorage ()
 
bool isEmpty ()
 
bool isValid () const noexcept
 
const QBindingStatusstatus (QtPrivate::QBindingStatusAccessToken) const
 
void registerDependency (const QUntypedPropertyData *data) const
 
QtPrivate::QPropertyBindingDatabindingData (const QUntypedPropertyData *data) const
 
QtPrivate::QPropertyBindingDatabindingData (QUntypedPropertyData *data, bool create)
 

Friends

template<typename Class, typename T, auto Offset, auto Setter, auto Signal, auto Getter>
class QObjectCompatProperty
 
class QObjectPrivate
 
class QtPrivate::QPropertyBindingData
 

Detailed Description

QBindingStorage acts as a storage for property binding related data in QObject. Any property in a QObject can be made bindable by using the Q_OBJECT_BINDABLE_PROPERTY macro to declare it. A setter and a getter for the property and a declaration using Q_PROPERTY have to be made as usual. Binding related data will automatically be stored within the QBindingStorage inside the QObject.

Definition at line 39 of file qbindingstorage.h.

Constructor & Destructor Documentation

◆ QBindingStorage()

QBindingStorage::QBindingStorage ( )

Definition at line 2288 of file qproperty.cpp.

◆ ~QBindingStorage()

QBindingStorage::~QBindingStorage ( )

Definition at line 2294 of file qproperty.cpp.

Member Function Documentation

◆ bindingData() [1/2]

QtPrivate::QPropertyBindingData * QBindingStorage::bindingData ( const QUntypedPropertyData * data) const
inline

Definition at line 63 of file qbindingstorage.h.

◆ bindingData() [2/2]

QtPrivate::QPropertyBindingData * QBindingStorage::bindingData ( QUntypedPropertyData * data,
bool create )
inline

Definition at line 74 of file qbindingstorage.h.

◆ isEmpty()

bool QBindingStorage::isEmpty ( )
inline

Definition at line 52 of file qbindingstorage.h.

◆ isValid()

bool QBindingStorage::isValid ( ) const
inlinenoexcept

Definition at line 53 of file qbindingstorage.h.

◆ registerDependency()

void QBindingStorage::registerDependency ( const QUntypedPropertyData * data) const
inline

Definition at line 57 of file qbindingstorage.h.

◆ status()

const QBindingStatus * QBindingStorage::status ( QtPrivate::QBindingStatusAccessToken ) const

Definition at line 2342 of file qproperty.cpp.

Friends And Related Symbol Documentation

◆ QObjectCompatProperty

template<typename Class, typename T, auto Offset, auto Setter, auto Signal, auto Getter>
friend class QObjectCompatProperty
friend

Definition at line 45 of file qbindingstorage.h.

◆ QObjectPrivate

friend class QObjectPrivate
friend

Definition at line 46 of file qbindingstorage.h.

◆ QtPrivate::QPropertyBindingData

friend class QtPrivate::QPropertyBindingData
friend

Definition at line 47 of file qbindingstorage.h.


The documentation for this class was generated from the following files: