PDA

View Full Version : How to use QNetworkAccessManager?



radmir
21st February 2013, 07:24
Hi, All,

Can anybody explain, how to use QNetworkAccessÐœanager?
Newly created it has no ActiveConfiguraion - at least with empty name and it isn't valid.
I have several possible network connections, which I may use.
But really I wanna use the only one, which is Active, and I can get its configuration by its name.
The question is:
How to force QNetworkAccessÐœanager to use this config?
By calling QNetworkConfigurationManager.setConfiguration I may change it, but if I call QNetworkAccessÐœanager.ActiveConfiguration I got the old not valid config!

So, can anybody advice me, what or how to do this?

Thanks,
Radmir

radmir
25th February 2013, 14:43
Sorry, my fault,
no need to seek explanations - the reason was - the target url redirects me to another place and I must proper handle this situation!

Thanks,
Radmir