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

QML Image asks the imageprovider for zero sized images and doesn't accept the result

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0
    • Quick: Other
    • None

    Description

      If you have a custom image provider, requestPixmap is called also for Image elements having

      a width/height zero, but if in that case a zero sized pixmap is returned, that is not accepted and an error is given:
      QML Image: Failed to get image from provider:

      First of all I think it should not request images that have a width or height of zero (this would be an optimization), but if it does it should accept that a zero sized pixmap is returned.

      See attached example that shows the error.

      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
            andras@kdab.com Andras Mantia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes