Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-93435

QCommandLineParser::process(arc, argv)

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.15.3
    • Core: Other
    • None
    • All

      It would be useful to pass arc and argv to QCommandLineParser. This allows us to use it before creating an QCoreApplication instance.

      Now it's only possible to obtain an arguments list from the QCoreApplication::arguments() and pass it to QCommandLineParser::process(). Without QCoreApplication one need to deal with character encodings, system API and other low-level things and workarounds to get the program arguments in a reliable and cross-platform way.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            nkrupenko.nvidia Nikita Krupenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes