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

Image source forces top level directory to be lower case

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.8.0
    • None
    • Linux/Wayland, Linux/X11

    Description

      If I create a top level directory and call it, say D (i.e., the full path is /D/) and then set the source of Image to be file://D/sample.gif  I receive the error: QML Image: Cannot open: file://d/sample.gif -> the D got converted to d internally.

      Here is a very small sample code exhibiting that issue:

       

      import QtQuick
      Window {
          width: 640
          height: 480
          visible: true
          Image {
              anchors.fill: parent
              source: "file://D/sample.gif"
          }
      }
      

       

      I can work around this by setting file:/D/sample.gif or file:///D/sample.gif as source, but as far as I know these are technically invalid, aren't they?

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            luspi Lukas Spies
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes