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

Jason H scorp1us at yahoo.com
Sun Sep 29 18:59:11 CEST 2013


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/20130929/10db3ce3/attachment.html>


More information about the Interest mailing list