Rearrange the test a bit to make the separation a bit clearer, also try snuggling crates up a bit closer to other things.
#include <QtGui/QApplication>
#include "editor.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
editor w;
w.show();
return a.exec();
}