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

DOC: Make obvious that Qt.openUrlExternally, QDesktopServices::openUrl always returns true

XMLWordPrintable

      The documentation for QDesktopServices::openUrl is somewhat vague on the return value.
      The documentation for Qt.openUrlExternally is somewhat vague on the return value.

      Both of these should be altered to indicate that it will always return true so long as the url conforms to rfc3986, or in some unforeseen case of catastrophic failure.

      Original bug:
      PRECONDITIONS:
      A file with a filetype which is not associated to any app in the operating
      system.

      STEPS LEADING TO PROBLEM:
      1. Call to Qt.openUrlExternally(filePath)

      EXPECTED OUTCOME:
      Returns false

      ACTUAL OUTCOME:
      Returns true
      and following error message can be seen:
      no default action for the given PARAMS

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

            Unassigned Unassigned
            mvehniai Mauri VehniƤinen
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes