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

QML image cannot open a file which has a hash mark (#) in filename

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • 5.0.0
    • 4.8.0
    • None
    • Windows 7 (64bit)
      Qt version 4.8.0

    Description

      How to reproduce

      1. Create (or copy) a JPEG image with name "test.jpg"

      2. Create ShowImage.qml file with the following content
      import QtQuick 1.1
      Image

      { source: "test.jpg" }

      3. Run qmlviewer ShowImage.qml and check that the image is visible

      4. Edit the ShowImage.qml and change "test.jpg" to "test#.jpg"

      5. Rename the JPEG file to "test#.jpg"

      6. Run qmlviewer ShowImage.qml. No image is visible. Open the warnings dialog. It should say something like
      file:///ShowImage.qml:3:1: QML Image: Cannot open: file:///test#.jpg

      7. Verify that the "test#.jpg" file can be opened and viewed in other image viewer application. For example in Windows use the built-in Windows Photo Viewer application.

      Attachments

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

        Activity

          People

            mvogt Matthew Vogt (closed Nokia identity) (Inactive)
            sami.jarvinen@tieto.com Sami Järvinen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes