How to get rounded corners of button in QML
-
wrote on 2 Jun 2017, 12:32 last edited by
I want to get rounded corners of button
-
wrote on 2 Jun 2017, 13:00 last edited by
-
wrote on 3 Jun 2017, 15:57 last edited by
@mit_cruze Or, if RoundButton is to strict, you can customize QtQuick.Controls 2.0 buttons like this:
Button { background: Rectangle { color: "chartreuse" border.width: 1 border.color: "blue" radius: 20 } text: "Round like this?" }
Docs: https://doc.qt.io/qt-5/qml-qtquick-controls2-button.html
Mind the version of QtQuick.Controls 1.x != 2.x
1/3