[Interest] Requesting QObject::bind() method

Sean Harmer sean.harmer at kdab.com
Fri Mar 24 11:19:08 CET 2017



On 23/03/2017 23:57, Thiago Macieira wrote:
> On quarta-feira, 22 de março de 2017 16:09:25 PDT Alejandro Exojo wrote:
>> The challenge is executing a lambda or a slot when any of the depending
>> properties changes. That's what the QML engine has, and what Olivier
>> blogged about in 2013:
>>
>> https://woboq.com/blog/property-bindings-in-cpp.html
>>
>> E.g. imagine that you have two sliders, and the text that you need to
>> display in a label depends on both. You need to connect to two signals,
>> because you depend on two properties.
>
> Right.
>
> But that's a little (or a lot) more difficult to do in C++.
>
> I'd like to see a proof of concept from someone.

This may be of interest:

https://danieldinu.com/posts/observable-c-expressions-using-the-observable-library/

Cheers,

Sean
-- 
Dr Sean Harmer | sean.harmer at kdab.com | Managing Director UK
KDAB (UK) Ltd, a KDAB Group company
Tel. +44 (0)1625 809908; Sweden (HQ) +46-563-540090
Mobile: +44 (0)7545 140604
KDAB - Qt Experts



More information about the Interest mailing list