Wed Jan 28, 2009 3:35 pm
I don't know if this is the right forum but here goes.
I'm working on a plugin for Amarok which is written in QtScript. I need to open a TCP connection to localhost. The QTcpSocket::connectToHost needs a unsigned short (16-bit int) as its port parameter.
QtScript is loosly typed and each number as such is probably a 32-bit integer. When calling connectToHost I get this error:
It seems that you can not call a Qt4 function that requires a short integer as type casting is impossible within QtScript.
Am I wrong about this? If so, how do I call connectToHost?
Registered users: Baidu [Spider], Bing [Bot], farid, Google [Bot], Majestic-12 [Bot], MSN [Bot], Sogou [Bot], Yahoo [Bot]