PDA

View Full Version : QNetworkConfigurationManager not working when running executable



Blackin
17th June 2011, 10:01
Hello everyone,

This is my first post here and i`m also just starting with Qt.

My problem sounds like this:

I have an application that connects to a web service via QNetworkAccessManager. Before making the actual http request, i check to see if the user has an internet connection using QNetworkConfigurationManager's isOnline function. This works just great when running the app from Qt Creator, but when i try running the .exe, isOnline returns false. Also the allConfigurationsfunctions return null. I've built Qt statically and copied ALL the dll's in the application's folder. I'm using Qt 4.7.3 on Windows 7 Professional. I've included network in the .pro file QT+=coreguinetworkxml

I've been trying to solve this for a few days now, but it seems i've reached a dead end. Old Google himself couldn't help me! :(

Thanks in advance for your help!