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

QDesktopServices::openUrl returns no permission

    XMLWordPrintable

    Details

    • Platform/s:
      Android
    • Commits:
      f938ed38d2f60e105b8b24ad7b154e62c6c2952c

      Description

      I can't open self written PDF files in Android by using openUrl.

      QDesktopServices::openUrl(QUrl::fromLocalFile(file));

      with 

      file = "/storage/emulated/0/Documents/doc.pdf"
      

      result:

      Qt JAVA : openURL(): No permissions to open Uri
      

      Android permissions READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE are given.

      Open the file with QFileDialog is working with no problems.

        Attachments

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

          Activity

            People

            Assignee:
            assam Assam Boudjelthia
            Reporter:
            p.steinmueller Pascal Steinmüller
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes