On Wednesday, 16 March 2016 15:07:30 CET, Nikos Chantziaras wrote: > QApplication app = new QApplication(/* ... */); > app->exec(); > delete app; There's no point to use heap allocation in this context. You can simply create a QApplication instance on stack in your main. Cheers, Jan -- Trojitá, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/