[Qt-interest] Class for storing IP address

Arnold Krille arnold at arnoldarts.de
Fri Sep 11 10:40:05 CEST 2009


Hi,

On Friday 11 September 2009 06:34:43 Sajauddin Shariff Mohammad wrote:
> Is there any class available to store IP-Address?
> Can any one provide me some reference for this....
> I want to take IP address from the user and store it. Now I am storing it
> in QString object. Is there any class available for storing  IP address?

If its just the address, use QHostAddress. If its also name, path, protocol, 
port and maybe even user-name and password, use QUrl.

And next time please take a look at http://doc.trolltech.com/4.5/classes.html 
to see whether something springs to your eyes...

Arnold

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090911/174b8913/attachment.bin 


More information about the Qt-interest-old mailing list