There is the following hierarchy: QVariantMap <- QVariantList <- QVariantMap The problem is QVariant::toList() and QVariant::toMap() return cop ...
There is the following hierarchy: QVariantMap <- QVariantList <- QVariantMap The problem is QVariant::toList() and QVariant::toMap() return cop ...
I have a problem with passing Q_PROPERTY as QVariantMap to QML - Segmentation fault. I created simple app to show the problem. When I'm using compiler ...
I try to pass Object from qml to c++ as a parameter of slot, is it possible to get in c++? In slot in c++ I have empty variable QVariant(QJSValue, ). ...
I have a collection of QVariantMaps which contains QVariantLists in SOME of their entries. I need to append to the lists. These lists can grow rather ...
I have the following struct: }; is it possible to put approximately 30 such objects into a QVariant and then be able to iterate through the QVaria ...
I have a multimap with QVariant as key, but it's not working with QByteArray. The funcion map.values("\xc2\x39\xc7\xe1") is returning all the values o ...
I'm trying to pass an object called QMap<QString, QVariant>* collect_row and then I'm going to fill the second element with a QVariant value. Th ...
Problem I have an interface which gives me a QVariant of an arbitrary type. I need to convert the data content in this variant to a raw binary QByteA ...
Quite often I find myself in need of some custom scheme model, mandating the implementation of more and more models, made even more tedious by the ina ...
I am storing QVariantMap as QVariant inside another QVariant. I need to add fileds in this nested QVariantMap in an slot function. Here is what I have ...
I'm trying to update a MapCircle in QML from a signal in C++ and I'm veen having several issues with it all day. In my class I have a Q_PROPERTY whi ...
I have several occurences in my application where I want to save a compound object into QSettings: the cpp looks like this: I registered them in ...
I'm lost as to how to fix this : Any ideas/help would be great. Most of the google results are about serializing custom classes and not ints :/ TI ...
How to add MySubClass to Q_DECLARE_METATYPE. This is sample code and please ignoring business of code. Consider MyClass works well without subcals ...
Can I store a QPointer, for example a QPointer<QTcpSocket> inside a QVariant and later extract it from it? I tried with: But I got an error ...
I have a class defined as this: cdataentry.h: I am trying to store a QList<CDataEntry> object in a QVariant. For that end, I have provided t ...
I am trying to write a code snippet which would take a QList of QVariants and would populate the list using ListView. Use cases with types QString, ...
It seems like something is going wrong when pointer values transcend between C++ and QML world. I am using the plain old fromValue() and value() to co ...
I'm working with Qt and JSON. Now, I have two options: QVariant and QJsonValue. I don't get the point in which they are different? I know QVariant ha ...
my problem is the following : I want to use a drag and drop in my QTreeWidget. My QtreeWidgetItem have the following flags Enabled | selectable |Drag ...