*serverlist\r\n#HostName,IP,Score,Ping,Speed,CountryLong,CountryShort\r\nserver2x.selfip.xx,111.100.240.10,605268,8,380099315,Japan,JP\r\nserve2x.selfip.xx,39.110.61.222,602280,3,625856265,Japan,JP\r\nserver2x.selfip.xx,46.5.0.129,400121,15,15754028,Germany,DE\r\n*\r\n
*serverlist\r\n#HostName,IP,Score,Ping,Speed,CountryLong,CountryShort\r\nserver2x.selfip.xx,111.100.240.10,605268,8,380099315,Japan,JP\r\nserve2x.selfip.xx,39.110.61.222,602280,3,625856265,Japan,JP\r\nserver2x.selfip.xx,46.5.0.129,400121,15,15754028,Germany,DE\r\n*\r\n
To copy to clipboard, switch view to plain text mode
for(QString data
: csvdata.
replace("\r",
"").
split("\n")){ srvlist =data.split(',');
//Having Got a First List in the Firts Iteration,How Can I get each item in the list? so as I can send it to my Database table using below Sql query
// INSERT INTO serverlisttable (id, hostname, IP,score...) VALUES (1, 'listitem at [0]', 'list item at [1]'...)
}
QString csvdata(reply->readAll());
QStringList srvlist;
for(QString data : csvdata.replace("\r","").split("\n")){
srvlist =data.split(',');
//Having Got a First List in the Firts Iteration,How Can I get each item in the list? so as I can send it to my Database table using below Sql query
// INSERT INTO serverlisttable (id, hostname, IP,score...) VALUES (1, 'listitem at [0]', 'list item at [1]'...)
}
To copy to clipboard, switch view to plain text mode
ID HostName IP Score Ping Speed CountryLong CountryShort
1 server2x.selfip.xx 111.100.240.10 605268 8 380099315 Japan JP
2 serve2x.selfip.xx 39.110.61.222 602280 3 625856265 Japan JP
ID HostName IP Score Ping Speed CountryLong CountryShort
1 server2x.selfip.xx 111.100.240.10 605268 8 380099315 Japan JP
2 serve2x.selfip.xx 39.110.61.222 602280 3 625856265 Japan JP
To copy to clipboard, switch view to plain text mode
Bookmarks