qskinny/examples/buttons/TestButton.qml

50 lines
673 B
QML
Raw Normal View History

2017-07-21 18:21:34 +02:00
import QtQuick 2.0
import Skinny 1.0 as Qsk
Qsk.PushButton
{
sizePolicy
{
// avoid the effect of long texts
2022-11-20 15:27:08 +01:00
horizontal: Qsk.SizePolicy.Ignored
vertical: Qsk.SizePolicy.Ignored
2017-07-21 18:21:34 +02:00
}
minimumSize
{
2022-04-06 10:56:29 +02:00
width: 80
height: 60
2022-04-06 10:56:29 +02:00
}
2022-04-06 08:41:32 +02:00
shape
2017-07-21 18:21:34 +02:00
{
sizeMode: Qt.RelativeSize
2017-07-21 18:21:34 +02:00
radius: 10
}
onClicked:
{
console.log( "Clicked" )
}
onPressed:
{
console.log( "Pressed" )
}
onReleased:
{
console.log( "Released" )
}
onCanceled:
{
console.log( "Canceled" )
}
onToggled:
{
console.log( "Toggled" )
}
}