[Development] RFC: RAII for property changes

Keith Gardner kreios4004 at gmail.com
Wed Apr 15 19:04:13 CEST 2015


>
> I'd certainly be interested to seeing how you solved this, yes. Thanks!
>

I have made a repository for the class with an example.  Sorry that there
is no documentation for it.  It requires C++11 support for r-value
references, std::functional, and some type traits features.  In addition to
having a notify callback, it also provides an optional pre-notify callback
to let you know the current value and the value it will change to.

https://github.com/kreios4004/Property_Class
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150415/1c4a5483/attachment.html>


More information about the Development mailing list