Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7741335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:00:01+00:00 2026-06-01T09:00:01+00:00

I’m working on a project where I’m trying to send request to our webservice

  • 0

I’m working on a project where I’m trying to send request to our webservice via REST requests. First I only connected the finished(QNetworkReply*) signal to a slot but since it never finished possible due to ssl issues I aslo tried to connect the sslErrors(QNetworkReply*, const QList<QSslError>&) slot as well since the request is https.

connect(&_accessManager, SIGNAL(sslErrors(QNetworkReply*, const QList<QSslError>&)), 
        this, SLOT(printSslErrors(QNetworkReply*, const QList<QSslError>&)));

Then in my print function I’m not able to access the error list in any way.

void AssetManager::printSslErrors(QNetworkReply *reply, const QList<QSslError>& errors) {
     ...
}

I’v tried:

const QSslError test = errors.at(0); // error on 'test' 
QSslError test = errors.at(0); // error on 'test'

or

foreach(QSslError error, errors) {
    qDebug() << error.errorString(); // error on 'errors'
}
for(int i = 0; i < errors.count(); i++) {
     qDebug() << errors.at(i).errorString(); // error on 'errors'
}

which results in:

error C2079: ‘test’ uses undefined class ‘QSslError’
error C2440: ‘initializing’ : cannot convert from ‘const QSslError’ to ‘int’

or

error C2027: use of undefined type ‘QSslError’
error C2228: left of ‘.toString’ must have class/struct/union

also, that IntelliSense underlines errors or test with the message:

IntelliSense: incomplete type is not allowed

(Notice that it doesnt complain when I do errors.count())

I include <QSslError> in the headerfile…

I’ve been struggeling quite a lot with the sslError signal and a few weeks ago I was not even able to connect the signal to anything since it “doesn’t exists”. I’m I missing a module or something?

Thanks for your help

Edit:

Still getting the error:

Object::connect: No such signal QNetworkAccessManager::sslErrors(QNetworkReply*, const QList&)

Also, cannot check if I have Ssl

qDebug() << QSslSocket::supportsSsl();

Since QSslSocket is undefined even though it’s included. It must something major that im missing here right? Do I have to install something? I am completly lost here 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:00:02+00:00Added an answer on June 1, 2026 at 9:00 am

    Make sure your Qt is built with SSL support turned on (and that OpenSSL dlls can be found on the PATH).

    This is usually only a problem if you built Qt yourself (I often keep forgetting those config options too), or if you are using Qt from linux distribution that happened to build it without SSL (although I’ve never seen that).

    EDIT:
    If you need to build it on windows (and can’t use prebuilt binaries for some reason):

    • Download and unpack OpenSSL and Qt into the same folder. For example:

      c:\root\openssl-1.0.1

      c:\root\qt-everywhere-opensource-src-4.8.1

    • Launch Visual Studio command line and run c:\root\openssl-1.0.1\ms\32all.bat, wait for things to build

    • cd into c:\root\qt-everywhere-opensource-src-4.8.1 and run

      configure.exe -platform win32-msvc2010 -openssl -I c:\root\openssl-1.0.1\include

    • make sure Qt detected and enabled OpenSSL support (configure prints out the list of everything)

    • run nmake to build Qt itself

    (modify appropriately for other versions of VS)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.