Hmm? I don't see such methods as QHostAddress::localhost() or QHostAddress::ipv4() at all.