Thanks Santosh,
What I mean is as in following use of the ArgumentList class:
#include <QCoreApplication>
#include <QDebug>
#include "argumentlist.h"
int main (int argc, char* argv[]) {
ArgumentList* list = new ArgumentList;
qDebug() << "list->getSwitchArg();
// other statements etc
....
return 0;
}
#include <QCoreApplication>
#include <QDebug>
#include "argumentlist.h"
int main (int argc, char* argv[]) {
ArgumentList* list = new ArgumentList;
qDebug() << "list->getSwitchArg();
// other statements etc
....
return 0;
}
To copy to clipboard, switch view to plain text mode
Why I am I able to access the "QString getSwitchArg() " method which is defined in ArgumentList class when its constructor assigned it to a QStringList with this statement:
if (qApp != NULL)
*this = qApp->arguments();
Bookmarks