ToolButton iconSource Size doesn't fill button Size on Android
-
Hello,
I created a simple
ToolBar
withToolButton
.
TheToolButton
has a icon of type SVG.
On Windows, the SVG is beautiful and fit perfectly the size of the ToolButton.
But on Android, the SVG isn't resized to fit theToolButton
. The Icon is much more bigger than theToolButton
.I found a fix in this forum:
ToolButton { anchors { top: parent.top; bottom: parent.bottom } Image { source: "image.svg" anchors.fill: parent fillMode: Image.PreserveAspectFit anchors.margins: 4 mipmap: true } }
But the render of the Image is worst that using iconSource on Windows.
So I am still looking for fixing iconSource Size on Android.Does anyone have a Idea why the Icon is not resize on Android ?