Some changes in try to fix issue when you enter
room with painted map, but frontend shows generated
one (most probably bug is triggered by template
filters)
Untested.
#include <QApplication>
#include "mainform.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
MyWindow *mainWin = new MyWindow;
mainWin->show();
return app.exec();
}