i have tried
QNetworkAccessManager manager;
QNetworkReply
*response
= manager.
get(QNetworkRequest
(QUrl(url
)));
connect(response,SIGNAL(finished()),&event,SLOT(quit()));
event.exec();
QString html
= response
->readAll
();
if(html.length() > 0){
str = html.split(",");
for (int i = 0; i < str.size(); ++i)
{
pic=str.at(i);
pic
=pic.
remove(QRegExp("<img[^>]*src=['|\"]", Qt
::CaseInsensitive));
pic
= pic.
remove(QString::fromStdString("\"" ), Qt
::CaseInsensitive);
pic = pic.remove('"');
pic = pic.remove("'");
pic=pic.remove("[");
pic=pic.remove("]");
qDebug()<<pic;
}
}
QNetworkAccessManager manager;
QNetworkReply *response = manager.get(QNetworkRequest(QUrl(url)));
QEventLoop event;
connect(response,SIGNAL(finished()),&event,SLOT(quit()));
event.exec();
QString html = response->readAll();
if(html.length() > 0){
QStringList str;
str = html.split(",");
for (int i = 0; i < str.size(); ++i)
{
pic=str.at(i);
pic=pic.remove(QRegExp("<img[^>]*src=['|\"]", Qt::CaseInsensitive));
pic = pic.remove(QString::fromStdString("\"" ), Qt::CaseInsensitive);
pic= pic.remove(QRegExp(QString::fromUtf8("\"")));
pic = pic.remove('"');
pic = pic.remove("'");
pic=pic.remove("[");
pic=pic.remove("]");
qDebug()<<pic;
}
}
To copy to clipboard, switch view to plain text mode
output :
i got:
"http:\/\/103.3.229.181\/digital-photo-frame-ads\/public\/uploads\/07032015\/qzms7p5nfcza55539.jpg"
"http:\/\/103.3.229.181\/digital-photo-frame-ads\/public\/uploads\/07032015\/srtsxvvopmu796070.png"
"http:\/\/103.3.229.181\/digital-photo-frame-ads\/public\/uploads\/07032015\/qlk7ajrnkh8z82910.png"

Originally Posted by
wysota
What have you tried so far to solve your problem? How does the problem differ from your earlier one where you were splitting a list containing file paths?
here
i cant able to remove "\" in this URL
please give some example to remove
Bookmarks