I have a main.cpp class
#include <QApplication>
#include "server.h"
int main(int argc, char * argv[])
{
Server * server;
server = new Server();
return app.exec();
}
#include <QApplication>
#include "server.h"
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
Server * server;
server = new Server();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
At this point, I presume, the "app" instance has been inputed with the "argc" and "argv".
How can I use this variables in my "server" instance ?
Bookmarks