Hi,
I am trying to write a console application to hit url using QT. I want to have a seperate function (normal C++ function) which does this job. There is a main program that will invoke this function several times (say with different urls) before exiting.
In order to test this, I tried below changes with the download program under http://harmattan-dev.nokia.com/docs/...-main-cpp.html
The change I have done to the program is replaced main function with a different function name (say test)
and written a new main function that will call test. For the first invocation of test everything works as expected
and if I invoke again the test function without exiting the program, I see segmentation fault.
QObject::connect: Cannot connect (null)::configurationAdded(QNetworkConfiguration) to QNetworkConfigurationManager::configurationAdded(Q NetworkConfiguration)
QObject::connect: Cannot connect (null)::configurationRemoved(QNetworkConfiguration ) to QNetworkConfigurationManager::configurationRemoved (QNetworkConfiguration)
QObject::connect: Cannot connect (null)::configurationUpdateComplete() to QNetworkConfigurationManager::updateCompleted()
QObject::connect: Cannot connect (null):nlineStateChanged(bool) to QNetworkConfigurationManager:nlineStateChanged(bool)
QObject::connect: Cannot connect (null)::configurationChanged(QNetworkConfiguration ) to QNetworkConfigurationManager::configurationChanged (QNetworkConfiguration)
I am very new to QT. Appreciate a way to accompolish this.
Bookmarks