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

QCommandLineParser::process(arc, argv)

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.15.3
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      All

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes