Python spawning subprocess in background

broken image
broken image

Here we'll create a simple Python script for that purpose, which we can then launch from within our application. To be able to test running external programs with QProcess we need to have something to run. In this tutorial we'll look at QProcess, the Qt system for running external programs from within your own app. This works great when using Python libraries to accomplish tasks, but sometimes you want to run external applications, passing parameters and getting the results.

broken image
broken image

So far we've looked at how to run work in separate threads, allowing you to do complex tasks without interrupting your UI.

broken image