Maybe you forgot the ftp:// or http:// in your url.
//QUrl url("ftp.trolltech.com/mirrors");
QUrl url
("ftp://ftp.trolltech.com/mirrors");
//QUrl url1("ftp:172.18.217.90");
QUrl url1
("ftp://172.18.217.90");
// or QUrl url1("http://172.18.217.90"); // btw, pinging this ip gives me request time out. qDebug() << "url1.host() = " << url1.host();
//QUrl url("ftp.trolltech.com/mirrors");
QUrl url("ftp://ftp.trolltech.com/mirrors");
//QUrl url1("ftp:172.18.217.90");
QUrl url1("ftp://172.18.217.90"); // or QUrl url1("http://172.18.217.90"); // btw, pinging this ip gives me request time out.
qDebug() << "url1.host() = " << url1.host();
To copy to clipboard, switch view to plain text mode
Bookmarks