13 int x()
const {
return xProp; }
15 QBindable<int>
bindableX() {
return QBindable<int>(&xProp); }
32 int x()
const {
return xProp; }
34 QBindable<int>
bindableX() {
return QBindable<int>(&xProp); }
65void usage_QBindable() {
69 qDebug() << bindableX.hasBinding();
70 QProperty<int>
y {42};
71 bindableX.setBinding([&](){
return 2*
y.value(); });
84 Q_PROPERTY(
int myVal READ myVal WRITE setMyVal BINDABLE bindableMyVal)
86 int myVal() {
return myValMember.value(); }
87 void setMyVal(
int newvalue) { myValMember = newvalue; }
100 QProperty<int> prop(42);
103 qDebug() << myfoo.myVal();
105 myfoo.bindableMyVal().setBinding([&]() {
return prop.value(); });
136 return QBindable<bool>(&d_func()->hasClientsData);
140 return d_func()->hasClientsData.value();
145 d->clients.push_back(
c);
147 d->hasClientsData.notify();
CustomType(int val, int otherVal)
void setMyVal(int newvalue)
QBindable< int > bindableMyVal()
bool hasClientsActualCalculation() const
void addClient(const Client &c)
QBindable< int > bindableX()
QBindable< bool > bindableHasClients()
qsizetype size() const noexcept
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint GLint GLint GLint GLint x
[0]
#define Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(...)
#define Q_OBJECT_COMPUTED_PROPERTY(Class, Type, name, ...)
#define Q_OBJECT_BINDABLE_PROPERTY(...)