0
Follow
0
View

Loading class instance into separate process using Qt

edxsunlixin 注册会员
2023-01-25 06:45

There is no standard solution from Qt for running a function in a different . However there is QThread and QtConcurrent, which use threads.

The main reason for python to have a multiing module (and not just multiing) is the Global Interpreter Lock (GIL). However when using Qt and C++ you do not have a GIL and therefore it is usally better to use multiple threads instead of multiple processes. But there are certain special cases where you would want parts of your code to run in a different process, i.e. for dropping permissions.

If you happen to run under Linux you might investigate the fork() system call.

About the Author

Question Info

Publish Time
2023-01-25 06:45
Update Time
2023-01-25 06:45