[Development] RFC: RAII for property changes

Andre Somers andre at familiesomers.nl
Wed Apr 15 19:11:09 CEST 2015


On 15-4-2015 18:44, Matthew Woehlke wrote:
> The second form would thus save the value <-> QVariant comparison and 
> not much else. The third form however eliminates the string look-up 
> entirely by having the user provide both the backing member variable 
> *and* what to do when a change should be emitted. (I'd expect this to 
> be the change signal most of the time, but taking a functor adds the 
> flexibility of allowing users to do other things if needed.)
Right, of course. That may be useful indeed. Thank you for your 
feedback, it is apreciated!

André




More information about the Development mailing list