Something went wrong. Try again.
my over complex system configurations
Something went wrong. Try again.
123456789101112131415161718192021222324252627import QtQuickimport qs.data
// A rectangle that reacts to the pointer; colour changes fade.Rectangle { id: root
readonly property alias hovered: area.containsMouse readonly property alias pressed: area.pressed property alias acceptedButtons: area.acceptedButtons
signal clicked(mouse: MouseEvent) signal scrolled(wheel: WheelEvent)
color: "transparent" Behavior on color { ColorAnimation { duration: Theme.animFast } }
MouseArea { id: area anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor onClicked: (mouse) => root.clicked(mouse) onWheel: (wheel) => root.scrolled(wheel) }}