1 | #include "dialog.h" |
---|---|
2 | |
3 | #include <QApplication> |
4 | #include <stdio.h> |
5 | |
6 | int main(int argc, char *argv[]) |
7 | { |
8 | QApplication a(argc, argv); |
9 | |
10 | if (argc>1) { |
11 | Dialog w; |
12 | if (w.showPrompt(argv[1])==QDialog::Accepted) { |
13 | char* input = w.getInput().toLocal8Bit().data(); |
14 | printf("%s",input); |
15 | } |
16 | } |
17 | return 0; |
18 | } |
19 |