[Interest] Creating QML views for C++ objects (not classes)

Николай Шатохин n.shatokhin at gmail.com
Mon Sep 30 09:57:34 CEST 2013


I've already found this solution:
http://qt-project.org/doc/qt-5.0/qtqml/qtqml-cppintegration-contextproperties.html
It
helps. Thanks.


2013/9/29 Jason H <scorp1us at yahoo.com>

> What problems?
>
> An object is an instance of a class... So what are you really asking for?
> It seems to me that your class might have multiple ways to view itself
> depending on what its properties are?
>
>
>
>   ------------------------------
>  *From:* Николай Шатохин <n.shatokhin at gmail.com>
> *To:* "interest at qt-project.org" <interest at qt-project.org>
> *Sent:* Sunday, September 29, 2013 5:19 AM
> *Subject:* [Interest] Creating QML views for C++ objects (not classes)
>
> 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
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130930/ce9d0997/attachment.html>


More information about the Interest mailing list