CodePudding user response:
Directly in the Windows API: CreateProceessBe sure to use the qt:
QProcess process;
Process. SetCreateProcessArgumentsModifier ([] (QProcess: : CreateProcessArguments * args)
{
The args - & gt; Flags |=CREATE_NEW_CONSOLE;
The args - & gt; StartupInfo - & gt; DwFlags & amp;=~ STARTF_USESTDHANDLES;
The args - & gt; StartupInfo - & gt; DwFlags |=STARTF_USESHOWWINDOW;
The args - & gt; StartupInfo - & gt; WShowWindow=SW_HIDE;
});
Process. The start ("... ");
Need to # include & lt; Windows. H>
.
.
CodePudding user response:
Try: CMD/c