From a657259ba6f68665b3b0ab08cd03c513a70ef87e Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Tue, 31 Oct 2023 22:23:18 +0800 Subject: [PATCH] [65_5] Qt 6: use startCommand instead of start --- src/Plugins/Qt/QTMPipeLink.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Plugins/Qt/QTMPipeLink.cpp b/src/Plugins/Qt/QTMPipeLink.cpp index c3808fc575..946b019825 100644 --- a/src/Plugins/Qt/QTMPipeLink.cpp +++ b/src/Plugins/Qt/QTMPipeLink.cpp @@ -49,7 +49,11 @@ bool QTMPipeLink::launchCmd () { if (state () != QProcess::NotRunning) killProcess (1000); //FIXME: is UTF8 the right encoding here? - QProcess::start(utf8_to_qstring(cmd)); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + QProcess::start (utf8_to_qstring (cmd)); +#else + QProcess::startCommand (utf8_to_qstring (cmd)); +#endif bool r= waitForStarted (); if (r) { connect (this, SIGNAL(readyReadStandardOutput ()), SLOT(readErrOut ()));