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

return QCommandLineOptions

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Core: I/O
    • None

    Description

      I use QCommandLineParser by using the function 

      addOption({{"f", "folder" }, "Path to folder" , "path" });
      
      addOption({{"s", "size" }, "Size" , "size" });
      

      and other options with different syntaxes.

       

      It would be beneficial in some situations to get access later in the script to (a copy of) the private variable of the class containing the final list of CLI options, namely

      QList<QCommandLineOption> commandLineOptionList;

      see https://code.woboq.org/qt5/qtbase/src/corelib/tools/qcommandlineparser.cpp.html#QCommandLineParserPrivate::commandLineOptionList

      e.g. with a public function like these:

      QList<QCommandLineOption> getOptionList() { return commandLineOptionList};

       

      Thanks.

       

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            fmercury Ferdy Mercury
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes