Hi,
See Qt Quick Layouts [qt-project.org]
By the way,instead of creating your own button, you can use the official QML Button [qt-project.org] and change its looks using ButtonStyle [qt-project.org]
↧