[Development] QProperty and library coding guide

Lars Knoll lars.knoll at qt.io
Wed Jul 22 12:27:14 CEST 2020


> On 22 Jul 2020, at 11:38, Shawn Rutledge <shawn.rutledge at qt.io> wrote:
> 
> 
>> On 2020 Jul 16, at 11:19, Ulf Hermann <ulf.hermann at qt.io> wrote:
>> 
>> Data bindings are a cornerstone of most modern UI frameworks, and Qt is actually late to the game. If we want Qt to stay relevant, then it needs to offer the same kind of convenience and performance that other frameworks offer. This would be an argument for converting all existing properties, and paying the price, just to make the binding API available.
> 
> Has someone done a survey of how bindings are implemented in other frameworks?  Maybe there is a cool trick out there that we are missing, which would enable a big leap in efficiency.

I don’t know of anybody who has done this for C++ yet. I do believe the design we have with QProperty is pretty good from an API perspective as well as efficient.

The problem we’re having purely comes from the fact that we’re trying to provide BC between versions and are hiding our data behind a d-pointer. If we'd give this up the whole problem would go away.

Cheers,
Lars

> 
> Do you have links to docs for the ones that you think look elegant?
> 
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development



More information about the Development mailing list