Thanks!  If it's that easy, and more reliable, why doesn't qApp->quit() do it that way?
 
 
Sent: Thursday, April 11, 2019 at 8:54 AM
From: "Konstantin Shegunov" <kshegu...@gmail.com>
To: "Jason H" <jh...@gmx.com>
Cc: "Giuseppe D'Angelo" <giuseppe.dang...@kdab.com>, "Interests Qt" <interest@qt-project.org>
Subject: Re: [Interest] Signals, slots before the event loop starts?
On Thu, Apr 11, 2019 at 3:48 PM Jason H <jh...@gmx.com> wrote:
What is the best way to do that? I think in the past, I used a 0ms timer, but that always feels janky.

QMetaObject::invokeMethod(qApp, &QCoreApplication::quit, Qt::QueuedConnection);

is my preference.
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to