ToolButton iconSource Size doesn't fill button Size on Android



  • Hello,

    I created a simple ToolBar with ToolButton.
    The ToolButton 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 the ToolButton. The Icon is much more bigger than the ToolButton.

    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 ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.