Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [Solved] Sizing an svg icon in a QML Button

    QML and Qt Quick
    2
    3
    1184
    Loading More Posts
    • 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.
    • D
      DBoosalis last edited by

      Is there a way to scale down an SVG icon loaded from a resource into a Button ?
      Thanks

      1 Reply Last reply Reply Quote 0
      • p3c0
        p3c0 Moderators last edited by

        Hi,

        You will need to use Image component in ButtonStyle.

        157

        1 Reply Last reply Reply Quote 0
        • D
          DBoosalis last edited by

          Thanks, I am getting the icon from an Action, but think your answer will still work

          1 Reply Last reply Reply Quote 0
          • First post
            Last post