Putting double quotes around a QString variable?
-
@Darkloud said in Putting double quotes around a QString variable?:
process->startDetached("cmd", QStringList() << "/c" << binFolderName << exeName);
So
qDebug() << binFolderName
andqDebug() << exeName
, and copy & paste so that we can clearly read them. If they were identical to your original"C:/Qt/5.14.2/mingw73_64/bin/windeployqt.exe"
&"C:/Users/wjbro/Desktop/New folder/Release001.exe"
, then it would behave the same, there's nothing magical about literal strings vs variables.@JonB said in Putting double quotes around a QString variable?:
@Darkloud said in Putting double quotes around a QString variable?:
process->startDetached("cmd", QStringList() << "/c" << binFolderName << exeName);
So
qDebug() << binFolderName
andqDebug() << exeName
, and copy & paste so that we can clearly read them. If they were identical to your original"C:/Qt/5.14.2/mingw73_64/bin/windeployqt.exe"
&"C:/Users/wjbro/Desktop/New folder/Release001.exe"
, then it would behave the same, there's nothing magical about literal strings vs variables.See above! I added a space after the first argument, which messed everything up. It is working now!
-
@JonB said in Putting double quotes around a QString variable?:
@Darkloud said in Putting double quotes around a QString variable?:
process->startDetached("cmd", QStringList() << "/c" << binFolderName << exeName);
So
qDebug() << binFolderName
andqDebug() << exeName
, and copy & paste so that we can clearly read them. If they were identical to your original"C:/Qt/5.14.2/mingw73_64/bin/windeployqt.exe"
&"C:/Users/wjbro/Desktop/New folder/Release001.exe"
, then it would behave the same, there's nothing magical about literal strings vs variables.See above! I added a space after the first argument, which messed everything up. It is working now!