You can use the Border Image element to display an image, such as a PNG file, as a border and a background.
Use two Border Image elements and suitable graphics to make it look like the button is pushed down when it is clicked. One of the Border Image elements is visible by default. You can specify that it is hidden and the other one becomes visible when the mouse is clicked.
Add a MouseArea that covers the whole area and emits the clicked signal (parent.clicked()) when it detects a mouse click.
You can add text to the button and set it up as a property. The text can then be initialized from the outside, making the button a reusable UI component. The font size is also available in case the default size is too big. You can scale down the button text and use smooth text rendering for some extra quality.
To create a graphical button:
Select File > New File or Project > QML > QML File > Choose... to create a QML file called Button.qml (for example).
Double-click the file to open it in the code editor.
Replace the Rectangle with an Item, as illustrated by the following code snippet: