So, I'm using a QNetworkRequest to get request from my website.

This is the code:

Qt Code:
  1. QNetworkRequest WebContact::getRequest()
  2. {
  3. QNetworkRequest request;
  4. request.setUrl(QUrl(contactURL));
  5. request.setHeader(QNetworkRequest::ContentTypeHeader,QVariant("application/x-www-form-urlencoded"));
  6. return request;
  7. }
To copy to clipboard, switch view to plain text mode 

When running on Qt Creator, the contactURL works perfectly both for HTTP and HTTPS.
However, when I compile and run outside Qt Creator, only the HTTP that works. Am I forgetting to add a library or something?