import QtQuick 2.9 import QtQuick.Controls 2.4 Button { id: control property string imageSrc: "" width: height scale: pressed ? 0.8:1 background: Image { source: control.imageSrc mipmap: true } Behavior on scale { NumberAnimation { duration: 100 } } }