Skip to content

Commit

Permalink
[65_5] Qt 6: use startCommand instead of start
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii authored Oct 31, 2023
1 parent 8e3e5af commit a657259
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Plugins/Qt/QTMPipeLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()));
Expand Down

0 comments on commit a657259

Please sign in to comment.