Skip to content

win11, qt6 : default svg icon cannot show #605

@likedev

Description

@likedev

all button svgs cannot show except tabs-menu-button.svg, using default configurtion.

OS: windows 11,
Qt Version: Qt 6.6.2 with all modules installed
image

My Solution
It seems that the CMAKELists.txt miss some qt6 module/dlls configuration. And it seems that qt6 default doesn't support svg image formats.

  1. Add Qt6::svg, Qt6::SvgWidgets to CMakeLists.txt

  2. Copy "C:\Qt\6.6.2\msvc2019_64\plugins\imageformats\qsvg.dll" to ${PROJECT_ROOT}\cmake-build-release\plugins\imageformats

Then it works:

image

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions