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

How to unpack all the data's in C++ of type QVariant that send from QML

$
0
0
Try this: QVariant qmlData; QVariantList temp = qmldata.value<QVariantList>();   foreach (QVariant var, temp) {   QObject *myObject = var.value<QObject *>();     if (myObject) {     // yay!   } }

Viewing all articles
Browse latest Browse all 4972

Trending Articles