Qt Run setting : specifying run commands to my qt application not working correctly
Solved
General and Desktop
-
This post is deleted!
-
@Maarouf-Med-Mahdi
I can't work this out, but are you sure*argv + i
is right? Shouldn't it be*(argv + i)
? It would be clearer IMHO if you wroteargv[i]
! -
@JonB omg, it is a stupid mistake , thank you man , its working now :)))))))
someting i make a confuse between *argv and **argv -
@Maarouf-Med-Mahdi
:)
That's why theargv[i]
syntax is probably less confusing.With your original
*argv + i
, which binds as(*argv) + i
, I believe you will find you don't quite get the path to to your executable back. What you actually get is always the executable (*argv == argv[0]
, which is the program name it was invoked under),+ i
characters on from the first character. So in your case it skipped the very first character of the exe path :)