Hello;
QML side: can I pass (by value) QQuickGradient, QQmlComponent and LabelStyle from QML to C++ as QVariant type?
C++ side: can I store them in say a QVarianMap?
QML side: can I then retrieve (from C++) the store values as QVariant?
void myClass::set(const QVariant& value, const QString& name) { // QINVOKABLE method called from QML side
{
// insert in QVariant map with name as a key
}
QVariant myClass::get(const QString& name) { // QINVOKABLE method called from QML side
// retrieved from the QVariant map
}
Any thoughts?
Thanks;
Mut
Bookmarks