Open GoogleCodeExporter opened 8 years ago
Hi, I have exactly the same problem! Using latest Amarok and its scripting
engine, I cant connect using QTcpSocket.
executing this code:
var sock = new QTcpSocket(this);
var addr = QHostInfo.fromName("www.google.com").addresses();
var haddress = new QHostAddress(addr[0]);
sock.connectToHost(haddress, 80, QIODevice.ReadWrite);
gives this error:
Error: QAbstractSocket::connectToHost(): could not find a function match;
candidates are:
connectToHost(QHostAddress address, unsigned short port, OpenMode mode)
connectToHost(String hostName, unsigned short port, OpenMode mode)
I wouldn't even try using sockets, but I need to send custom headers, so
Downloader can't be used. It appears that I can't even do that using the
QNetworkRequest because setRawHeader() does exactly nothing! But that's another
issue which I'm gonna post now..
Original comment by cotko...@gmail.com
on 25 Dec 2010 at 9:03
Original issue reported on code.google.com by
cyberwizzard
on 28 Dec 2009 at 7:35