What is the difference between events and signals / slots in the QT world?
Does each other change? What incidents is an intangible signal / slots?
Perhaps it best describes
in QT, event objects Which are taken from abstract queue class, which represent such things that have arisen as a result of the activity within or outside an application that the application needs to know about it. Events can be obtained and handled by any instance of a QObject subclass, but they are particularly relevant for widgets. This document explains how events are distributed and controlled in a specific application.
Then there are two parallel mechanisms that meet the similar similarities of events and signals / slots, normally an event will be generated from outside the unit (such as keyboard, mesijale) and QApplication through event loop. Will be distributed from. Generally unless you do not set the code you will not generate events, you can filter them through QObject :: installEventFilter ()
or by override the appropriate tasks to handle events in the subclassed objects can do.
Signals and slots are very easy to generate and obtain and you connect any two QObject subclasses, they are handled through metaLLAS (take a look at your moc_classname.cpp file for more) but Most interlaced communications that will be generated by you, perhaps using signals and slots, signals can get a quote immediately or postpone through queue (if you use threads C are) a signal can be generated
Comments
Post a Comment