Check for empty hat, somehow claymore managed this, this should be a workaround pending figuring out how he did it.
#include <QtGui/QApplication>
#include "editor.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
editor w;
w.show();
return a.exec();
}