Unsolved QML push button
-
Hi
I am using Creator 4.8.0 and QtQuick 2.9
Is it possible to define in QML a push button that has rounded corners?Thanks
-
@GrahamLa hi,
I believe you can change the "background" property of the QML Button object, define it as a Rectangle and give it a radius to have rounded corners.
If you do not want to register any mouse clicks in those areas, you'll have to create your own button qml file and do something like suggested here:
https://stackoverflow.com/questions/38164074/how-to-create-a-round-mouse-area-in-qml
-
Also, RoundButton with a small
radius
can be used for this. Depends on which Controls you're using.