Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8.0 RC, 5.9.0
-
Windows 7, Windows 10 64 bit
-
-
31e782cc9609c2f1c201453841f36ed7dae25890, b137734e6b67dc6b9615c1d200e9f9c5a3b8fee7
Description
- 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/
Attachments
Issue Links
- 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...