QApplication in unicode

The QApplication constructor accepts (int argc, char ** argv) to handle any Qt command line arguments.

What if my application is in unicode? And do I have wchar_t ** argv?

It seems a bit silly to create a char * copy of all the command line arguments to pass to the library, which itself is unicode.

+3
source share
2 answers

Yes it would. If it is not for this note :

. Unix argc argv . argv QString:: fromLocal8Bit(); , , , Latin1. Unix- , .

Windows NT . Windows arguments() argv/argc, Unicode. arguments() GetCommandLine(). , , arguments(). at (0) Windows, .

, .

+7

, main char** argv, QApplication. ( /?) , .

0

Source: https://habr.com/ru/post/1772535/


All Articles