#include "askpassdialog.h" | |
#include <QtGui/QApplication> | |
#include <stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
QApplication a(argc, argv); | |
AskPassDialog w; | |
w.setWindowTitle("QAskPass"); | |
if(!w.exec()) return 1; | |
QByteArray pw = w.password().toLocal8Bit(); | |
puts(pw.data()); | |
return 0; | |
} |