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

Image.source passed to QDeclarativeImageProvider may get truncated after '#' or '?'

XMLWordPrintable

    • 327169a6a3fb0bac258cb878019734211a707cce

      I register my own QDeclarativeImageProvider and in the QML code, I do...

      Image { source: "image://notes/f#" }

      ...but the id that is passed to my QDeclarativeImageProvider::requestPixmap() is just a f, not an f#. Quite a difference when rendering a musical note

      Apparently, everything in the source URL after a '#' (inclusive the '#', itself) gets truncated. I assume, the reason is that the URL goes through a QUrl, and there a '#' marks the beginning of a fragment. The same happens also for ?, and that is a query delimiter.

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

            bealam Bea Lam (closed Nokia identity) (Inactive)
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes