Changed to QCoreApplication to avoid X11 dep