array have data but use QJsonValue value = array.at(i); no content
Unsolved
General and Desktop
-
why return information is QJsonValue(array,QJsonArray([{"group_id":240,"is_agree":1"}]))
QJsonArray array = data_value.toArray();
when I use "QJsonValue value = array.at(i);",value is null. -
Please provide a minimal, compilable example - you don't fill data_value anwhere in your snippets so why should it return anything?
-
@bestmyf_001 Assuming that
data_value
is actually a QJsonArray... what is the value ofi
and how many elements are in the array? See QJsonArray::at()