In C# there is an attribute which enables application to run 3rd party apps without showing the app window.
Is there any way to run a console application without showing the console window in QT without using Win32 CreateProcess function?
In C# there is an attribute which enables application to run 3rd party apps without showing the app window.
Is there any way to run a console application without showing the console window in QT without using Win32 CreateProcess function?
Copyright © 2021 Jogjafile Inc.
QProcess.start()
will run the console application without showing its window, but you may also wish to have some control over it. Please see this example:You can pass commands and parameters to the console using second argument in the start method (inside
QStringList
). It is also possible to redirect the output to some file, withsetStandardOutputFile
method.If you need to show the window, use
p.startDetached()
.