开发者

QApplication exec() creates new thread / process?

开发者 https://www.devze.com 2023-01-18 21:50 出处:网络
In QApplication if we call exec() then doe开发者_Go百科s a new process / thread start?No, calling exec will:

In QApplication if we call exec() then doe开发者_Go百科s a new process / thread start?


No, calling exec will:

Enters the main event loop and waits until exit() is called, then returns the value that was set to exit() (which is 0 if exit() is called via quit()).

It is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets.

0

精彩评论

暂无评论...
验证码 换一张
取 消