You are trying to create two MainWindows, both will run simultaneously, if you want the 2nd MainWindow to wait until first one is done then
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
MainWindow w;
w.show();
a.exec();//<<<<<<<<<<<<<<<<<<<<
MainWindow dl;
dl.setTarget("/mnt/jffs2/Synch.xml");
dl.download();
return 0;//<<<<<<<<<<<<<<<<<<<<
}
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
a.exec();//<<<<<<<<<<<<<<<<<<<<
MainWindow dl;
dl.setTarget("/mnt/jffs2/Synch.xml");
dl.download();
return 0;//<<<<<<<<<<<<<<<<<<<<
}
To copy to clipboard, switch view to plain text mode
also the error you mentioned (altually warnning) is because you commented out that solt in the code
Bookmarks