读取航线

This commit is contained in:
hm
2020-08-05 22:51:42 +08:00
parent 4d24e68e7d
commit ecb73699cd
+4 -2
View File
@@ -1288,9 +1288,11 @@ void OPMapWidget::WPLoad(QString path)//带文件目录参数
QJsonObject json = doc.object();
//解码
QJsonValue jsonValue = json.value("mission");
QJsonArray itemValue = json.value("mission").toObject().value("items").toArray();
qDebug() << jsonValue.toObject().keys();
qDebug() << itemValue;
}