QString FitnessMainDlg::QtGet(QString url)
{
QNetworkRequest request;
//QNetworkAccessManager* naManager = new QNetworkAccessManager(this);
QUrl strUrl = url;
request.setUrl(strUrl);
request.setRawHeader("Content-Type", "charset='utf-8'");
request.setRawHeader("Content-Type", "application/json");
QNetworkReply* reply = g_naManager->get(request);
QByteArray responseData;
QEventLoop eventLoop;
connect(g_naManager, SIGNAL(finished(QNetworkReply*)), &eventLoop, SLOT(quit()));
eventLoop.exec();
QTextCodec* codec = QTextCodec::codecForName("utf8");
QString strReply = codec->toUnicode(reply->readAll());
reply->deleteLater();
return strReply;
}