Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. ToolButton iconSource Size doesn't fill button Size on Android

ToolButton iconSource Size doesn't fill button Size on Android

Scheduled Pinned Locked Moved QML and Qt Quick
toolbaricon
1 Posts 1 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • diduD Offline
    diduD Offline
    didu
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved