Luigit
repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by admin

pi/agent/skills/optional/qml/examples/01-hello/README.md

Raw
Rendered preview

01: Hello

A minimal Window with a Rectangle, a reactive count, and a TapHandler.

qml6 hello.qml

box.count owns the count. The text and color bindings both update when it changes. Window comes from QtQuick.Window; ApplicationWindow would come from QtQuick.Controls.

This example demonstrates pointer handling only. It does not implement or test keyboard activation or complete custom-control accessibility, so use a Qt Quick Control for production button behavior.

# 01: Hello

A minimal `Window` with a `Rectangle`, a reactive count, and a `TapHandler`.

```sh
qml6 hello.qml
```

`box.count` owns the count.
The text and color bindings both update when it changes.
`Window` comes from `QtQuick.Window`; `ApplicationWindow` would come from `QtQuick.Controls`.

This example demonstrates pointer handling only.
It does not implement or test keyboard activation or complete custom-control accessibility, so use a Qt Quick Control for production button behavior.