make the code, which was supposed to iterate file log number (if no access) and fallback to stderr in worst case rather than segfault, actually work
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}