We have the code:
#include <QApplication>
#include <QDialog>
#include <QProcess>
#include <cstdlib>
#include "dialog.h"
int main(int argc, char *argv[])
{
Dialog dialog;
dialog.show();
if(app.exec()!= 0)
return EXIT_FAILURE;
}
#include <QApplication>
#include <QDialog>
#include <QProcess>
#include <cstdlib>
#include "dialog.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Dialog dialog;
dialog.show();
if(app.exec()!= 0)
return EXIT_FAILURE;
}
To copy to clipboard, switch view to plain text mode
How can we retrieve the command line arguments, inside the dialog code (declared in dialog.h as "class Dialog: public QDialog, Ui:: Dialog")?
Thanks.
Bookmarks