QtBase  v6.3.1
Static Public Attributes | List of all members
QtPrivate::QBindableInterfaceForProperty< Property, typename > Class Template Reference

#include <qproperty.h>

Collaboration diagram for QtPrivate::QBindableInterfaceForProperty< Property, typename >:
Collaboration graph
[legend]

Static Public Attributes

static constexpr QBindableInterface iface
 

Detailed Description

template<typename Property, typename = void>
class QtPrivate::QBindableInterfaceForProperty< Property, typename >

Definition at line 548 of file qproperty.h.

Member Data Documentation

◆ iface

template<typename Property , typename = void>
constexpr QBindableInterface QtPrivate::QBindableInterfaceForProperty< Property, typename >::iface
staticconstexpr
Initial value:
= {
[](const QUntypedPropertyData *d, void *value) -> void
{ *static_cast<T*>(value) = static_cast<const Property *>(d)->value(); },
nullptr,
nullptr,
nullptr,
{ return Qt::makePropertyBinding([d]() -> T { return static_cast<const Property *>(d)->value(); }, location); },
[](const QUntypedPropertyData *d, QPropertyObserver *observer) -> void
{ observer->setSource(static_cast<const Property *>(d)->bindingData()); },
[]() { return QMetaType::fromType<T>(); }
}
#define value
[5]
auto makePropertyBinding(Functor &&f, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION, std::enable_if_t< std::is_invocable_v< Functor >> *=nullptr)
Definition: qproperty.h:222
GLint location
Definition: main.cpp:38

Definition at line 554 of file qproperty.h.


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