Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-3320

scripting API: QFileDialog: 'identifier' argument not documented

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 4.8.0
    • 4.7.0
    • Documentation
    • None
    • All
    • 09d5bbe27 (master)

      https://doc.qt.io/qtinstallerframework/scripting-qfiledialog.html

      "For automatic installations, --file-query with identifier=value pairs can be given separated with a comma. " 

      However, there is no "identifier" argument in the documentation of QFileDialog methods. QMessageBox methods have "identifier" as first argument. And after a lot of digging in the sources I found that QFileDialogProxy has an identifier as last argument. Thus I tried to pass an identifier as fourth argument to QFileDialog.getOpenFileName and - it actually worked.

      At the very minimum, document the identifier argument as is. Ideally be consistent between QMessageBox and QFileDialog and take identifiers as either first or last argument everywhere? Thanks.

        For Gerrit Dashboard: QTIFW-3320
        # Subject Branch Project Status CR V

            kamartti Katja Marttila
            dfranke Daniel Franke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes