-gh (heaptrace) appears to be the reason for crashing in DrawCircle on my system. I wonder if it has other bad behaviour as well.
#include <QtGui/QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}