PDA

View Full Version : My list custom errors. Signal and Slots



8080205
25th October 2012, 16:51
Hi people,

I want to do something like this:

I have a enumeration errors like qnetworkreply.

QNetworkReply::NoError
QNetworkReply::RemoteHostClosedError
QNetworkReply::UnknownContentError

My errors enumeration:

MyClass::Error1
MyClass::Error2
...

Now i want to do this

connect(reply, SIGNAL(sslErrors(QList<QSslError>)),
this, SLOT(slotSslErrors(QList<QSslError>)));

How create a class to know this ?

ChrisW67
27th October 2012, 07:48
connect(reply, SIGNAL(sslErrors(QList<QSslError>)),
this, SLOT(slotSslErrors(QList<QSslError>)));

How create a class to know this ?
To know what? If you want a slot that accepts a list of you enum values then declare one. It's basic C++ there is no mystery. What does your enumeration have to do with QSslError?