- 
    
Bug
 - 
    Resolution: Done
 - 
    
P2: Important
 - 
    5.8.0 RC, 5.9.0
 - 
    Windows 7, Windows 10 64 bit
 
- 
        
 - 
        31e782cc9609c2f1c201453841f36ed7dae25890, b137734e6b67dc6b9615c1d200e9f9c5a3b8fee7
 
- Build and run this program:
#include <QApplication> #include <QProcess> #include <QPushButton> void startProcess() { QProcess p; p.startDetached("C:\\WINDOWS\\system32\\cmd.exe", QStringList(), "C:\\Users"); } int main(int argc, char *argv[]) { QApplication a(argc, argv); QPushButton pb("Open Terminal"); pb.show(); pb.connect(&pb, &QPushButton::clicked, [] () {startProcess();}); return a.exec(); } - Click the button.
Nothing seems to happen. In the task manager you can seeslash. that cmd.exe was started but it does not have a window. 
The windows command prompt should be shown. With 5.7.1, this works correctly.
This might have been introduced by https://codereview.qt-project.org/162585/
- resulted from
 - 
                    
QTBUG-53833 Using QProcess::startDetached() on the console app on Windows causes cmd.exe window to be shown
-         
     - Closed
 
 -         
 
- resulted in
 - 
                    
QTCREATORBUG-17439 Open in Command Prompt Here does not work
-         
 - Closed
 
 -         
 
- mentioned in
 - 
                    
Page Loading...
 
| For Gerrit Dashboard: QTBUG-57687 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 161108,8 | Add non-static QProcess::startDetached | dev | qt/qtbase | Status: MERGED | +2 | 0 | 
| 192246,3 | Support setCreateProcessArgumentsModifier in QProcess:startDetached | dev | qt/qtbase | Status: MERGED | +2 | 0 |