telephant/qml/TextButton.qml
2021-01-30 19:45:41 +01:00

16 lines
300 B
QML

import QtQuick 2.13
import QtQuick.Controls 2.13
Label {
id: label
property var onClicked: function () {}
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: parent.onClicked()
}
}