<?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[EventHandling]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I have a GUI Application which is developed in C++ and Tilcon GUI tool.<br />
Tilcon will provide facility to design Ui pages and API to handle Ui file.</p>
<p dir="auto">For handling event: "TRT_GETINPUT(...)" will return a structure which will having information about event like<br />
eventId, parent window, state of widget, time, text on object etc..</p>
<p dir="auto">Now we are planning to migrate above same GUI application into Qt, C++.<br />
Is there any such function which can give information about event.</p>
<p dir="auto">I have studied signals and slot but i need better way of handling of event.<br />
please suggest some solution.</p>
<p dir="auto">Thank you<br />
Venkat</p>
]]></description><link>https://forum.qt.io/topic/45405/eventhandling</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 05:53:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/45405.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 30 Aug 2014 08:56:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EventHandling on Thu, 04 Sep 2014 21:17:27 GMT]]></title><description><![CDATA[<p dir="auto">What does a run through the debugger tells you ?</p>
]]></description><link>https://forum.qt.io/post/242621</link><guid isPermaLink="true">https://forum.qt.io/post/242621</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 04 Sep 2014 21:17:27 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Thu, 04 Sep 2014 06:10:21 GMT]]></title><description><![CDATA[<p dir="auto">hi,<br />
I have install event filter with function "button-&gt;installEventFilter(this)"</p>
<p dir="auto">i am try to install on button</p>
<p dir="auto">i am installing event filter after setupUi(..);</p>
<p dir="auto">i am not getting window after run the program.<br />
i am getting message like "The program has unexpectedly finished"<br />
and " c:\Qt_practice\mouse_event.exe existed with code -1073741819".</p>
]]></description><link>https://forum.qt.io/post/242455</link><guid isPermaLink="true">https://forum.qt.io/post/242455</guid><dc:creator><![CDATA[mvenkat061]]></dc:creator><pubDate>Thu, 04 Sep 2014 06:10:21 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Wed, 03 Sep 2014 19:08:28 GMT]]></title><description><![CDATA[<p dir="auto">QMainWindow is a way more complex widget (docks/central widget etc…) You may have to install your event filter on multiple widgets.</p>
]]></description><link>https://forum.qt.io/post/242351</link><guid isPermaLink="true">https://forum.qt.io/post/242351</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 03 Sep 2014 19:08:28 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Wed, 03 Sep 2014 07:27:39 GMT]]></title><description><![CDATA[<p dir="auto">hi<br />
bool eventfilter(Qobject* , QEvent* );<br />
is working if i create a project with base class of Qwidget but it is not working if i create project with base class of QMainWindow.</p>
<p dir="auto">Why this is any reason for it?<br />
How can make it work for base class Qmainwindow.</p>
<p dir="auto">Thank you<br />
Venkat</p>
]]></description><link>https://forum.qt.io/post/242265</link><guid isPermaLink="true">https://forum.qt.io/post/242265</guid><dc:creator><![CDATA[mvenkat061]]></dc:creator><pubDate>Wed, 03 Sep 2014 07:27:39 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Tue, 02 Sep 2014 07:10:46 GMT]]></title><description><![CDATA[<p dir="auto">EventFilter is called for mouse button press on button object.</p>
<p dir="auto">i have added installEventFilter in constructor.?</p>
<p dir="auto">Can we need to include any .h or any thing in .pro file<br />
my code is:</p>
<p dir="auto">In .h</p>
<p dir="auto">bool eventFilter(QObject *object, QEvent *event);</p>
<p dir="auto">in .cpp</p>
<p dir="auto">mainwindow :: mainwindow(....)<br />
{<br />
button-&gt;installEventfilter(this);<br />
}<br />
bool mainwindow::eventFilter(QObject *object, QEvent *event)<br />
{<br />
if(event-&gt;type() == QEvent::MouseButtonPress)<br />
{<br />
label-&gt;settext("hello");<br />
}<br />
}<br />
can you plz help me how  work with event filter</p>
]]></description><link>https://forum.qt.io/post/242116</link><guid isPermaLink="true">https://forum.qt.io/post/242116</guid><dc:creator><![CDATA[mvenkat061]]></dc:creator><pubDate>Tue, 02 Sep 2014 07:10:46 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Tue, 02 Sep 2014 07:01:59 GMT]]></title><description><![CDATA[<p dir="auto">hi,<br />
Actually eventID and precondition and action is not pattren.<br />
Actual Config format is<br />
[event]<br />
EventId = button1      //Object ID<br />
[Precondition]<br />
ObjectID = button2 //object id for precondition<br />
Attribut = text     // read text on button2</p>
<p dir="auto">[Action]<br />
precondition value = Hello   //if text on button is hello<br />
[API]<br />
objectId = button3<br />
action = 3 /<br />
Argumet = hello /// set text "hello" on button 3 ; we have set of function 3 equivalent to set text.</p>
]]></description><link>https://forum.qt.io/post/242114</link><guid isPermaLink="true">https://forum.qt.io/post/242114</guid><dc:creator><![CDATA[mvenkat061]]></dc:creator><pubDate>Tue, 02 Sep 2014 07:01:59 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Mon, 01 Sep 2014 21:14:39 GMT]]></title><description><![CDATA[<p dir="auto">AFAIK you can't match that pattern without creating e.g. your own events with these parameters. Or maybe a state machine.</p>
]]></description><link>https://forum.qt.io/post/242074</link><guid isPermaLink="true">https://forum.qt.io/post/242074</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 01 Sep 2014 21:14:39 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Mon, 01 Sep 2014 10:24:13 GMT]]></title><description><![CDATA[<p dir="auto">Thank you,<br />
yes i need all info about event because the existing GUI application design is such a way that,<br />
each events have some set of actions to excite based on some preconditions.</p>
<p dir="auto">Ex: Event ID = button1<br />
precondition = "read text on button2<br />
Action = if precondition oK then write text on button3.</p>
<p dir="auto">so all events, preconditions and Actions are configurable.<br />
Each time will check event Id which is return from TRT_GETINPUT(..) with configuration events if both are matching then we check precondition and perform action.</p>
<p dir="auto">so that why i need a function which return event info.</p>
]]></description><link>https://forum.qt.io/post/242004</link><guid isPermaLink="true">https://forum.qt.io/post/242004</guid><dc:creator><![CDATA[mvenkat061]]></dc:creator><pubDate>Mon, 01 Sep 2014 10:24:13 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Sun, 31 Aug 2014 20:20:33 GMT]]></title><description><![CDATA[<p dir="auto">Then you should take a look at the eventFilter function. Do you really need that level of details ? If so, why ?</p>
]]></description><link>https://forum.qt.io/post/241928</link><guid isPermaLink="true">https://forum.qt.io/post/241928</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 31 Aug 2014 20:20:33 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Sun, 31 Aug 2014 08:26:30 GMT]]></title><description><![CDATA[<p dir="auto">I dont want any event on window click .<br />
I need event on mouse click on any widget like button , check box ..<br />
and i need event info like event generate widget id, state ..etc..</p>
<p dir="auto">can you please help me.</p>
<p dir="auto">Thank you<br />
Regard<br />
Venkat</p>
]]></description><link>https://forum.qt.io/post/241886</link><guid isPermaLink="true">https://forum.qt.io/post/241886</guid><dc:creator><![CDATA[mvenkat061]]></dc:creator><pubDate>Sun, 31 Aug 2014 08:26:30 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Sun, 31 Aug 2014 08:16:08 GMT]]></title><description><![CDATA[<p dir="auto">Thank you .. it is working.I am get event on window/ widget click but how to get event on button click or button state change or change item in combo box ...etc..</p>
]]></description><link>https://forum.qt.io/post/241884</link><guid isPermaLink="true">https://forum.qt.io/post/241884</guid><dc:creator><![CDATA[mvenkat061]]></dc:creator><pubDate>Sun, 31 Aug 2014 08:16:08 GMT</pubDate></item><item><title><![CDATA[Reply to EventHandling on Sat, 30 Aug 2014 11:29:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You can have a look at "this":<a href="http://qt-project.org/doc/qt-5/eventsandfilters.html" target="_blank" rel="noopener noreferrer nofollow ugc">http://qt-project.org/doc/qt-5/eventsandfilters.html</a> chapter from the documentation which explains the event system used by Qt.</p>
<p dir="auto">There's an equivalent chapter for QML</p>
]]></description><link>https://forum.qt.io/post/241819</link><guid isPermaLink="true">https://forum.qt.io/post/241819</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 30 Aug 2014 11:29:31 GMT</pubDate></item></channel></rss>