[Interest] Invalid command line parsing at QCoreApplication::arguments on MS Windows family

Marat Abrarov abrarov at mail.ru
Tue Jan 17 19:06:26 CET 2012


To Jason H

> Interesting find. However I'd prefer uniform parsing across all platforms for Qt apps. 
> If windows rules breaks platform abstraction (requiring different command lines), 
> then I would err on the side of Qt since it's goal is abstraction.

I think it's better to follow the rules of the target platform (like Qt does at GUI).

If at Windows command line argument for Qt-based program (qtapp.exe) is path (name of folder) and it contains spaces and
I need to complete it with backslash then I have to write:

    qtapp.exe "path\"

In such situation (at qtapp.exe) QCoreApplication::arguments will return 

    path"

instead 

    path\

Amazing, why Qt dev team still haven't found this bug?

Regards,
Marat Abrarov.





More information about the Interest mailing list