You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I don't know if the question is right here, but I really needs help.
I need to convert json str to QString, and I defines the from_json function,
to explicit type conversion, it can work. maybe QString str = object["string"];
can do some implicit type conversion during compilation ? while I don‘’t understand why
object["string"] returns a basic_json object which can implicitly convert to std::string. object["string"].get<QString>() explicitly converts to QString. I'm not sure whether QString implicitly converts from std::string though...
Sorry, I don't know if the question is right here, but I really needs help.
I need to convert json str to QString, and I defines the from_json function,
json object = {{"string","string"}};
then I code this ,
QString str = object["string"];
it works no problem.but when I code this,
then the compiler do not know how to compile,error with
Error: C2593: "operator =" is not clear
Do non-built-in variables can not be pre-defined? (I tried int and double type,it can work,)
The text was updated successfully, but these errors were encountered: