I am attempting to run a python script from a QT application. This script need to to be run inside a virtualenv called venv
. I can start the script but when I attempt .kill()
the script will keep running until the console window is closed. Alternatively calling .terminate()
just leaves the application hanging as it never properly finishes. Minimum replication below
QProcess python;
python.start( ".\\AdminConsole\\venv\\Scripts\\python "
".\\AdminConsole\\manage.py runserver 0.0.0.0:8000" );
python.waitForStarted();
python.kill();
python.waitForFinished();
printf( "Ended \n" );
return 0;
any help is appreciated
Edit
Reduce code in minimum replication