← Back to team overview

ubuntu-phone team mailing list archive

Re: Create QML view for C++ object (not class)

 

Sounds like a "context property" use case (you plain set a QObject as a
context property for a view's root scope, w/o even registering the object's
type, and all its properties and invokables become available).


On Sun, Sep 29, 2013 at 6:38 AM, Николай Шатохин <n.shatokhin@xxxxxxxxx>wrote:

> Hello.
>
> When I create a class in C++, I can register it for QML and can create
> view for it. It's very convenient. But, if I need many objects of the same
> type, and need to show few views on screen, I got problems.
> Is it possible to register QML type for object, not for class?
> If I change some object, I need to see only its view changed.
>
> Best regard,
> Nick
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References