Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

How is QApplication notified by the window system?

$
0
0
I started learning Qt with C++ and I trying to figure out how the event mechanism works. I kind of understand how it works within the application itself (signals,slots) and how QApplication handles the events and queue them for processing and notifying objects/widgets about them. I still have some open questions though: My understanding is the QApplication is the first object in my program that gets notified about new events. Is that correct ? How’s the QApplication itself notified by the windowing system about new events(e.g:mouseMoveEvent) to queue them in the first place? How does the windowing system know about the internal naming of my widgets, so that it can tell QApplication that widget “x” was clicked, focused, etc. If the window system doesn’t know the widget names or doesn’t have a reference to the clicked widget (or any other kind of event), how does QApplication figure out which widget needs to be notified. Thanks in advance for your help.

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>