Search found 2 matches
- Wed Apr 10 2024 7:53 am
- Forum: Developers
- Topic: Conversion between QJsonObject and QVariantMap
- Replies: 2
- Views: 834
Conversion between QJsonObject and QVariantMap
QVariant json_to_variant() { QJsonObject t_json; t_json["111"] = 111; t_json["222"] = 222; QJsonObject root; root["root"] = t_json; auto t_map = root.toVariantMap(); QVariant t_var = t_map; return t_var; } QVariant t_var = json_to_variant(); QJsonObject t_root = t_var....
- Wed Apr 03 2024 4:54 pm
- Forum: Developers
- Topic: Questions about SIGNAL
- Replies: 1
- Views: 296
Questions about SIGNAL
What is the difference between the CS_SIGNAL_1 macro and the CS_SIGNAL_2 macro? When I only want to use CS_SIGNAL_1, the compiler gives an error. This question has puzzled me for three days。