2022-02-26 18:50:07 +08:00
|
|
|
#include "dialog.h"
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
|
|
|
if (argc>1) {
|
|
|
|
Dialog w;
|
|
|
|
if (w.showPrompt(argv[1])==QDialog::Accepted) {
|
|
|
|
char* input = w.getInput().toLocal8Bit().data();
|
2022-02-26 19:36:18 +08:00
|
|
|
printf("%s",input);
|
2022-02-26 18:50:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|