Skip to content

TimePicker

import { TimePicker } from "material.slint";
export component Example inherits Window {
width: 400px;
height: 300px;
background: transparent;
TimePicker {
hour: 14;
minute: 30;
}
}
slint

A TimePicker allows users to select a time using a clock interface or text input.

int (in-out) default: 0

The selected hour (0-23).

int (in-out) default: 0

The selected minute (0-59).

bool default: false

Whether the time picker is read-only.

Invoked when the time selection is confirmed.

TimePicker {
accepted() => {
debug("Time accepted");
}
}
slint

Invoked when the time selection is cancelled.

TimePicker {
cancelled() => {
debug("Time selection cancelled");
}
}
slint

© 2025 SixtyFPS GmbH