Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

How to create C++ object dynamically from within QML?

$
0
0
@Dheerendra, Yeah that’s exactly how I’m doing now. That way wraps the C++ type in a QML type, and then I create the QML type dynamically, like your sample code does. My original question was different. I asked how to create and use the C++ type directly, without the QML type wrapper. However, now I get used to and I really like the idea to wrap C++ type in a QML type, so my original question is not a problem any more. Thanks for your reply.

Viewing all articles
Browse latest Browse all 4972

Trending Articles