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

QLabel with embedded image using 'qrc:/' will no longer load

    XMLWordPrintable

Details

    • d8e213a9e (dev), c9cf4037c (dev), 5b938f772 (6.5), 17d4582b9 (6.5), 2d87c4d88 (dev), 7c84a0cd2 (dev), 8df821460 (6.5), 1a37fd314 (tqtc/lts-6.2), 119759029 (tqtc/lts-6.2), c381d4b12 (tqtc/lts-6.2), 9242363fa (6.4), 8f19bab7b (6.4), c35691cd1 (6.4)

    Description

      If an <img> tag in a QLabel uses "qrc:/" to begin the URL the image will not be loaded.

      This appears to be a regression from QTBUG-60793, as prior to that commit QTextImageHandler.cpp would remove the 'qrc' from the front of these urls. _q_resolveEntryAndCreateLegacyEngine_recursive in qfilesystemengine.cpp assumes resource URLs begin with ':' so it will no longer create as QResourceFileEngine for urls starting with 'qrc'.

      Attachments

        1. labeltest.zip
          5 kB
        2. labeltest.png
          labeltest.png
          24 kB

        Activity

          People

            vhilshei Volker Hilsheimer
            noah Noah Hamerslough
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: