[Interest] qRegisterMetaType<QList<QSslError> > and type flags
Stephen Kelly
stephen.kelly at kdab.com
Wed Jan 2 17:42:53 CET 2013
On Wednesday, January 02, 2013 16:43:27 Jan Kundrát wrote:
> Hi,
> I'm getting the following error message from Qt5's port of Trojita:
> There are no calls to Q_DECLARE_METATYPE mentioning
> QSslError or QList<QSslError> in my code.
But there is such a call in qsslsocket.h.
> My code contains calls to:
>
> qRegisterMetaType<QList<QSslError> >("QList<QSslError>");
The fix is probably to include qsslsocket.h in the translation unit where you
have that line.
Of course it's a bug and an odd mistake that
Q_DECLARE_METATYPE(QList<QSslError>) is in qsslsocket.h instead of
qsslerror.h.
Also you should just use
qRegisterMetaType<QList<QSslError> >()
without the string.
Thanks,
--
Stephen Kelly <stephen.kelly at kdab.com> | Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
www.kdab.com || Germany +49-30-521325470 || Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-Independent Software Solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130102/54a999f1/attachment.sig>
More information about the Interest
mailing list