<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[What happens after a SLOT has been handled?]]></title><description><![CDATA[<p dir="auto">Hey guys,</p>
<p dir="auto">I'm new to Qt and loving it so far, but I wanted to ask you guys a question.<br />
Does anyone know, what the routine does after a "SIGNAL-&gt;SLOT" has been handled, so when I for example, press a button and then handle the SLOT event, where does the routine go afterwards, when there is no immediate action to follow?<br />
I'm asking, because right now I'm looking for an error, that occurs immediately after a SLOT has been dealt with, and the debugger stands on my Main.cpp line "return a.exec()" and I'm not sure, where exactly I should be. :)</p>
<p dir="auto">And sometimes I get thrown to this function:</p>
<p dir="auto">static void deallocate(QArrayData *data)<br />
{<br />
Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));<br />
QArrayData::deallocate(data, sizeof(T), Q_ALIGNOF(AlignmentDummy));<br />
}</p>
<p dir="auto">thanks in advance, and all the Best from Austria!</p>
<p dir="auto">EDIT: Found my error, was passing the address of a StackItem and tried to access it later!<br />
but still, would be curious what happens after a handled Slot! :D</p>
]]></description><link>https://forum.qt.io/topic/51869/what-happens-after-a-slot-has-been-handled</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 12:57:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/51869.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Mar 2015 07:26:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to What happens after a SLOT has been handled? on Tue, 03 Mar 2015 07:57:22 GMT]]></title><description><![CDATA[<p dir="auto">Thanks so much for the explanation and your time! :)</p>
]]></description><link>https://forum.qt.io/post/263781</link><guid isPermaLink="true">https://forum.qt.io/post/263781</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 03 Mar 2015 07:57:22 GMT</pubDate></item><item><title><![CDATA[Reply to What happens after a SLOT has been handled? on Tue, 03 Mar 2015 07:55:20 GMT]]></title><description><![CDATA[<p dir="auto">Depends on whether the signal-slot connection is synchronous or asynchronous.</p>
<p dir="auto">By default, the connection is synchronous if both sender and receiver are in the same thread. In this case, emitting a signal is much like a function call. If multiple slots are connected to a signal, they are called one after the other. After the last slot has been called, there's some cleanup, then the code returns to the line after the emit statement.</p>
<p dir="auto">If the connection is asynchronous, then the slot is executed within the event loop. So the code will return to the event loop after executing the slot.</p>
]]></description><link>https://forum.qt.io/post/263780</link><guid isPermaLink="true">https://forum.qt.io/post/263780</guid><dc:creator><![CDATA[Asperamanca]]></dc:creator><pubDate>Tue, 03 Mar 2015 07:55:20 GMT</pubDate></item></channel></rss>