copyQtdata.commands gives error "Invalid number of parameters"
-
Hello Team,
I am using the following command in my pro file so that the files get copy to the dest dir which I specify.
--> copyQtdata.commands += $(COPY_DIR) /f $$shell_path($$(QTDIR)\bin\Qt5Test.dll) $$shell_path($$DESTDIR)
Internally it uses xcopy command and is working fine.
But when I try to use the command to copy a file which is present in the path which has spaces, it gives me error.
"Invalid number of parameters". Eg : "Program Files" has a space.I took the xcopy command of the same and tried to run in command prompt with giving double qoutes it works fine.
How do I give double qoutes in "copyQtdata.commands" so that spaces are taken care.
-
https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg
Or switch side, join the CMake-fans and use that instead. Qt6 will be using CMake anyway
-
https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg
Or switch side, join the CMake-fans and use that instead. Qt6 will be using CMake anyway
@VRonin said in copyQtdata.commands gives error "Invalid number of parameters":
Qt6 will be using CMake anyway
Just to state the obvious: That still means you can use
qmake
for your own projects.Regards
-
https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg
Or switch side, join the CMake-fans and use that instead. Qt6 will be using CMake anyway
-
Do you know a resource/doc explaining how to switch from q to c make please ?
https://doc.qt.io/qt-5/cmake-manual.html
Better docs are still WIP: https://bugreports.qt.io/browse/QTBUG-72159
Which doesn't mean you can still use qmake for your own projects.
I think the language here is misleading. to clarify, qmake will always remain an option even after Qt6. My personal opinion is, however, that it will become more nichy as QBS was (maybe not to that extent)
-
Do you know a resource/doc explaining how to switch from q to c make please ?
https://doc.qt.io/qt-5/cmake-manual.html
Better docs are still WIP: https://bugreports.qt.io/browse/QTBUG-72159
Which doesn't mean you can still use qmake for your own projects.
I think the language here is misleading. to clarify, qmake will always remain an option even after Qt6. My personal opinion is, however, that it will become more nichy as QBS was (maybe not to that extent)
@VRonin said in copyQtdata.commands gives error "Invalid number of parameters":
I think the language here is misleading.
Fixed - thanks.
-
Do you know a resource/doc explaining how to switch from q to c make please ?
https://doc.qt.io/qt-5/cmake-manual.html
Better docs are still WIP: https://bugreports.qt.io/browse/QTBUG-72159
Which doesn't mean you can still use qmake for your own projects.
I think the language here is misleading. to clarify, qmake will always remain an option even after Qt6. My personal opinion is, however, that it will become more nichy as QBS was (maybe not to that extent)
-
https://doc.qt.io/qt-5/qmake-function-reference.html#shell-quote-arg
Or switch side, join the CMake-fans and use that instead. Qt6 will be using CMake anyway