<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>Update on this:</div>

<div>It didn't work. I called it, nothing (discernable) happened. Got a bunch of serial port not open errors....</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Thursday, April 11, 2019 at 9:44 AM<br/>
<b>From:</b> "Jason H" <jhihn@gmx.com><br/>
<b>To:</b> "Konstantin Shegunov" <kshegunov@gmail.com><br/>
<b>Cc:</b> "Interests Qt" <interest@qt-project.org><br/>
<b>Subject:</b> Re: [Interest] Signals, slots before the event loop starts?</div>

<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>Thanks!  If it's that easy, and more reliable, why doesn't qApp->quit() do it that way?</div>

<div> </div>

<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Sent:</b> Thursday, April 11, 2019 at 8:54 AM<br/>
<b>From:</b> "Konstantin Shegunov" <kshegunov@gmail.com><br/>
<b>To:</b> "Jason H" <jhihn@gmx.com><br/>
<b>Cc:</b> "Giuseppe D'Angelo" <giuseppe.dangelo@kdab.com>, "Interests Qt" <interest@qt-project.org><br/>
<b>Subject:</b> Re: [Interest] Signals, slots before the event loop starts?</div>

<div>
<div>
<div>On Thu, Apr 11, 2019 at 3:48 PM Jason H <<a href="mailto:jhihn@gmx.com" onclick="parent.window.location.href='mailto:jhihn@gmx.com'; return false;" target="_blank">jhihn@gmx.com</a>> wrote:</div>

<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">What is the best way to do that? I think in the past, I used a 0ms timer, but that always feels janky.</blockquote>

<div><br/>
QMetaObject::invokeMethod(qApp, &QCoreApplication::quit, Qt::QueuedConnection);<br/>
<br/>
is my preference.</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________ Interest mailing list Interest@qt-project.org <a href="https://lists.qt-project.org/listinfo/interest" target="_blank">https://lists.qt-project.org/listinfo/interest</a></div>
</div>
</div>
</div></div></body></html>