[Qt5-feedback] C++ api to use for UI in addition to QML

Andre Somers andre at familiesomers.nl
Mon May 16 14:57:28 CEST 2011


Op Ma, 16 mei, 2011 2:43 pm, schreef Thiago Macieira:
> On Monday, 16 de May de 2011 12:03:30 Serhiy wrote:
>> So my point is that since QT itself uses C++ why not to have C++ api
>> for new features as well.
>
> Because we lock ourselves to that API, due to C++'s binary compatibility
> requirements.
>
> We like to have a minimal API that addresses the use-cases. We'll be doing
> it
> once in QML. Doing it again in C++ is more work and also harder to change
> later.

Sure. But there needs to be some sort of sane way to interact with QML
elements from C++, if QML is to be the main UI paradigm of Qt. At the very
least, it would make sense to make it possible to get a pointer to a
QObject based on a QML id.

André




More information about the Qt5-feedback mailing list