<?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[Qt- esc key release issue]]></title><description><![CDATA[<p dir="auto">I have an application in which i have a class T derived from X, and X is derived from QWidget class. In class X i have an overwritten key release event handler which treats the esc key code when released by closing the window and performing some actions. If T doesn't overwrite that and enharits the behaviour from X, when i press esc and T is busy handling the key release and performing certain actions, if I press esc again by what handler will it be handled (i get a weird seg fault, and i'm sure it's from my code, but i can't trace where the second esc key release is handled, and I don't have a lot of experience with this framework) thanks in advance :)</p>
]]></description><link>https://forum.qt.io/topic/18172/qt-esc-key-release-issue</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 08:34:11 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/18172.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Jul 2012 11:10:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt- esc key release issue on Wed, 11 Jul 2012 16:55:42 GMT]]></title><description><![CDATA[<p dir="auto">bq. @#<br />
if(e-&gt;key()==X-&gt;getEscKeyCode)</p>
<h1></h1>
<pre><code>          FunctionDoingSomething();
</code></pre>
<h1></h1>
<p dir="auto">@</p>
<p dir="auto">Where does the X-&gt; come from? You probably ment to use <em>X::getEscKeyCode()</em>? Please send a copy of your original source code, as this "pseudo code" does not help to help you.</p>
]]></description><link>https://forum.qt.io/post/144134</link><guid isPermaLink="true">https://forum.qt.io/post/144134</guid><dc:creator><![CDATA[franku]]></dc:creator><pubDate>Wed, 11 Jul 2012 16:55:42 GMT</pubDate></item><item><title><![CDATA[Reply to Qt- esc key release issue on Wed, 11 Jul 2012 10:58:21 GMT]]></title><description><![CDATA[<p dir="auto">well the classes are something like<br />
@<br />
class T:public X{<br />
...</p>
<p dir="auto">class X: public QWidget {<br />
....<br />
@<br />
and the handler in X is<br />
@<br />
void X::keyReleaseEvent(QKeyEvent* e){</p>
<p dir="auto">if(e-&gt;key()==X-&gt;getEscKeyCode)<br />
FunctionDoingSomething();</p>
<p dir="auto">}<br />
@<br />
and T just enharits it from X, no modification.</p>
<p dir="auto">So when it is T, in FunctionDoingSomething(), to be more exact, how will the keyrelease of Esc be treated, because i want to trace it's effect, it goes into segmentation fault</p>
<p dir="auto"><em>Edit: use @ tags around code sections please, Andre</em></p>
]]></description><link>https://forum.qt.io/post/144070</link><guid isPermaLink="true">https://forum.qt.io/post/144070</guid><dc:creator><![CDATA[Slyvr]]></dc:creator><pubDate>Wed, 11 Jul 2012 10:58:21 GMT</pubDate></item><item><title><![CDATA[Reply to Qt- esc key release issue on Tue, 10 Jul 2012 20:47:30 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Slyvr" date="1341929415"]<br />
[quote author="Andre" date="1341920033"]Please just show us your key handing reimplementations... We can't help you trace down what happens without seeing your (relevant) code. [/quote]</p>
<p dir="auto">ok, i will come with the code soon, thanks for the answer [/quote]</p>
<p dir="auto">Yeah, it will be great.</p>
]]></description><link>https://forum.qt.io/post/144037</link><guid isPermaLink="true">https://forum.qt.io/post/144037</guid><dc:creator><![CDATA[tucnak]]></dc:creator><pubDate>Tue, 10 Jul 2012 20:47:30 GMT</pubDate></item><item><title><![CDATA[Reply to Qt- esc key release issue on Tue, 10 Jul 2012 14:10:15 GMT]]></title><description><![CDATA[<p dir="auto">[quote author="Andre" date="1341920033"]Please just show us your key handing reimplementations... We can't help you trace down what happens without seeing your (relevant) code. [/quote]</p>
<p dir="auto">ok, i will come with the code soon, thanks for the answer</p>
]]></description><link>https://forum.qt.io/post/144003</link><guid isPermaLink="true">https://forum.qt.io/post/144003</guid><dc:creator><![CDATA[Slyvr]]></dc:creator><pubDate>Tue, 10 Jul 2012 14:10:15 GMT</pubDate></item><item><title><![CDATA[Reply to Qt- esc key release issue on Tue, 10 Jul 2012 11:33:53 GMT]]></title><description><![CDATA[<p dir="auto">Please just show us your key handing reimplementations... We can't help you trace down what happens without seeing your (relevant) code.</p>
]]></description><link>https://forum.qt.io/post/143992</link><guid isPermaLink="true">https://forum.qt.io/post/143992</guid><dc:creator><![CDATA[andre]]></dc:creator><pubDate>Tue, 10 Jul 2012 11:33:53 GMT</pubDate></item></channel></rss>