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

QDesktopServices::openUrl: Local files don't open anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • 6.5.3, 6.6.0 Beta4, 6.7.0 FF
    • 6.5.1
    • GUI: Other
    • None
    • Ubuntu 22.04.2 LTS
    • Linux/Wayland
    • d524f0a75 (dev), 91619f0e7 (6.6), b45ac04dc (6.5)

    Description

      QDesktopServices::openUrl:  Local files don't open anymore.

      Example:

      QUrl u(QUrl::fromLocalFile("/home/edwin/Qt/6.5.1/Src/qtwebengine/tests/auto/pdfquick/multipageview/data/qpdfwriter.pdf"));
      bool b=QDesktopServices::openUrl(u);
      Q_ASSERT(b);

      The return value is true, but the file does not open in the viewer.

      When I compile the same project with Qt Version 6.4.3 the problem does not occur.

       

       

       

      Attachments

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

        Activity

          People

            liaqi Liang Qi
            the_robz Robert Mundt
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes