On Mon, 30 Sep 2019 at 19:12, Matthew Woehlke <mwoehlke.fl...@gmail.com> wrote:
> > QProperty<QString> fullname; > > fullname.setBinding([&]() { return surname() + " " + lastname(); }); > > I suppose this is convenient, but it also means creating a new function > object for *every instance of the type*. A more "traditional" approach > would only have *one* member function (that is called with the implicit > 'this' parameter). > > Have you at least considered doing something similar here, i.e. instead > of using a capturing lambda, instead use a stateless function that takes > the owning class as a parameter? Which owning class? How does that avoid making it a template anyway? _______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development