[Qt-interest] QHostAddress::setHost() not working

Neel Basu neel.basu.z at gmail.com
Sat Mar 14 13:28:18 CET 2009


Here goes my code
-------------------------
void ProtocolSegment::setHost(const QString& addr){
	qDebug() << "Host " << addr;
	host__.setAddress(addr);
	qDebug() << "setting Host " << host__.toString();
}
--------------------------------
I am calling setHost("google.com")
Output is
------------------------------
Host  "google.com"
setting Host  ""
--------------------------------
which means setAddress() is not working correctly.
I've also tried host__ = aadr e.g. the operator=() overload
But same result

Any Ideas ??

Thanks
Neel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090314/32083983/attachment.html 


More information about the Qt-interest-old mailing list