Eventos de respuesta
Esta página facilita de forma rápida el evento de respuesta característico de cada componente.
Last updated
Esta página facilita de forma rápida el evento de respuesta característico de cada componente.
Last updated
Action
{
icon.name: "love"
onTriggered: {
}
}Maui.SearchField
{
placeholderText: "Search for..."
onAccepted: {
console.info(text)
}
}Maui.ColorsRow
{
anchors.centerIn: parent
colors: ["pink", "mediumspringgreen", "deepskyblue", "royalblue"]
onColorPicked: {
console.info(color)
}
}
Slider {
from: 0
value: 0
to: 100
onMoved: {
console.info(value)
}
}SpinBox {
from: 5
to: 500
value: 100
onValueModified: {
console.info(value)
}
}Switch {
checkable: true
checked: fileIndexing ? true : false
onToggled: {
console.info(visualPosition) // 0 ó 1
}
}Rectangle {
anchors.centerIn: parent
width: 200
height: 200
radius: 4
color: Maui.Theme.alternateBackgroundColor
MouseArea {
anchors.fill: parent
onClicked: {
console.info("evento de ratón pulsado")
}
}
}import QtQuick 2.15
import QtQuick.Controls 2.15
import org.mauikit.controls 1.3 as Maui
Maui.ApplicationWindow
{
id: root
Maui.Page {
anchors.fill: parent
showCSDControls: true
Rectangle {
anchors.centerIn: parent
width: 200
height: 200
radius: 4
color: mouse.hovered ? Maui.Theme.focusColor : Maui.Theme.alternateBackgroundColor
HoverHandler {
id: mouse
}
}
}
}