[Interest] Have the Websocket QML component go through QNetworkAccessManager

Kurt Pattyn pattyn.kurt at gmail.com
Wed Jun 18 07:26:34 CEST 2014



> On 09 Jun 2014, at 19:00, RĂ©mi Jannel <remi at mixlr.com> wrote:
> 
> Hi,
> 
> I am using the QWebsockets that is part of the release of Qt5.3.0 in QML. I would like the requests to go through my QNetworkAccessManager but haven't been able to make it work.
> 
> I am setting the QNetworkAccessManager like this on my QQuickView:
> this->rootContext()->engine()->setNetworkAccessManagerFactory(new MyManagerFactory());
> 
> This works fine for my XMLHttpRequest() that I make in QML but does not seem to apply to the request made by my Websocket {} component when establishing the connection.
> 
> Is there a way to make this work?

Currently this is not possible. I see that you have created a bug report for this.
I hope to get this in for the 5.4 release.

Cheers,

Kurt
> 
> Best Regards,
> 
> Remi
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list