Hi and welcome to devnet,
Which version of Qt ?
Which platform ?
Which build system ?
If qmake, did you add QT += network
? It should not be needed as it is one of the default modules in the list but who knows.
Did you build Qt yourself ?
Do you have OpenSSL installed ?