[Interest] Subclassing QNetworkAccessManager not working
Jason H
jhihn at gmx.com
Tue Nov 3 17:46:57 CET 2015
> Sent: Tuesday, November 03, 2015 at 11:43 AM
> From: "Thiago Macieira" <thiago.macieira at intel.com>
> To: interest at qt-project.org
> Subject: Re: [Interest] Subclassing QNetworkAccessManager not working
>
> On Tuesday 03 November 2015 17:23:04 Jason H wrote:
> > Didn't I already do that? Here it is again:
>
> Sorry, you did.
>
> > class EncryptingNetworkManager: public QNetworkAccessManager {
> > public:
> > EncryptingNetworkManager(QObject *parent = 0) :
> > QNetworkAccessManager(parent){}
> >
> > protected slots:
> > QStringList supportedSchemesImplementation() const { // const or not it
> > does not work QStringList schemes;
> > schemes.push_back("aes");
> > return schemes;
> > }
> > };
>
> You forgot the Q_OBJECT macro.
Doh, *facepalm*! I've been in QML so long, I forgot about that!
More information about the Interest
mailing list