t-artistik / qtscriptgenerator

Automatically exported from code.google.com/p/qtscriptgenerator
0 stars 0 forks source link

QTcpSocket.connectToHost doesn't work #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The follow code results in a "function not found match". 
var host = new QHostAddress("localhost");
var sock = new QTcpSocket();
var port = 25;
sock.connectToHost(host, port, QIODevice.ReadWrite);

It appears that its expecting a quint16, and fails when it doesn't receive one?

Original issue reported on code.google.com by ian.mon...@gmail.com on 29 Jan 2009 at 2:39

GoogleCodeExporter commented 8 years ago

Original comment by kentm...@gmail.com on 2 Feb 2009 at 1:12

GoogleCodeExporter commented 8 years ago
Fixed in SVN or is there a workaround?

Original comment by cyberwizzard on 2 Feb 2009 at 10:38

GoogleCodeExporter commented 8 years ago
Its fixed in git, yea.

Original comment by ian.mon...@gmail.com on 13 Feb 2009 at 6:51

GoogleCodeExporter commented 8 years ago
Can anyone else confirm this as fixed?

I built from git and replaced my old bindings, yet I still receive:

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) 

Original comment by AJagu...@gmail.com on 8 Aug 2009 at 5:12

GoogleCodeExporter commented 8 years ago
Even with the latest version it still ain't working over here... Did the fix 
ever
make it into stable?

Original comment by cyberwizzard on 25 Dec 2009 at 3:11