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

Qt Quick can't load SVG images without the Qt Widgets module

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0 RC2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      MSVC 2019, Win10 2004 x64
    • Platform/s:
      Windows

      Description

      I'm displaying SVG images in my Qt Quick applications, however, they can't be loaded without the Qt Widgets module (Qt5Widgets.dll).

       

      I don't understand why the widgets module is necessary to display a SVG image.

       

      Minimum re-produce project attached.

      Steps to reproduce:

      1. Build the project.
      2. Run the application and the SVG image can be displayed successfully
      3. Delete or rename Qt5Widgets(d).dll
      4. Re-open the application and the SVG image can't be loaded.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            wangwenx190 赵 宇航
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes