C++ (Qt)void myfunc(QCoreApplication b){ QNetworkAccessManager *myManager = new QNetworkAccessManager(&b);} int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); myfunc(a); return 0;}
C++ (Qt)void myfunc(){ QNetworkAccessManager *myManager = new QNetworkAccessManager(this);} int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); myfunc(); return 0;}
C++ (Qt)void QCoreApplication::myfunc(){ QNetworkAccessManager *myManager = new QNetworkAccessManager(this);} int main(int argc, char *argv[]){ QCoreApplication a(argc, argv); return 0;}
C++ (Qt)QNetworkAccessManager ( QObject * parent = 0 );
C++ (Qt)QNetworkAccessManager *myManager = new QNetworkAccessManager(const_cast<QCoreApplication*>(&b));