<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/canvas2d-watchui-demo-i0w2xwc5s" -->

---
title: Canvas2D: WatchUI Demo | daily.dev
description: A deep-dive walkthrough of WatchUI, a smartwatch demo app built to showcase Canvas2D, the new GPU-accelerated QML painting API in Qt 6.12, combined with Qt...
canonical: https://daily.dev/posts/canvas2d-watchui-demo-i0w2xwc5s
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Canvas2D: WatchUI Demo | daily.dev
og:description: A deep-dive walkthrough of WatchUI, a smartwatch demo app built to showcase Canvas2D, the new GPU-accelerated QML painting API in Qt 6.12, combined with Qt...
og:url: https://daily.dev/posts/canvas2d-watchui-demo-i0w2xwc5s
og:image: https://api.daily.dev/og/posts/i0w2XWC5s.png
og:image:alt: Canvas2D: WatchUI Demo
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Canvas2D: WatchUI Demo

**[Qt](https://daily.dev/sources/qt)** · 17 min read · 0 upvotes · 0 comments

## Summary

A deep-dive walkthrough of WatchUI, a smartwatch demo app built to showcase Canvas2D, the new GPU-accelerated QML painting API in Qt 6.12, combined with Qt Quick Effect Maker shaders and Qt Quick 3D. The post breaks down each of the six watch views (Time & Date, Weather, Music, Activity, Water, Heartbeat), explaining exactly which parts use Canvas2D's imperative path API for geometry, which use per-pixel shader effects for things like glow, rain, and bloom, and how Qt Quick's unified 2D/3D renderer lets the same 2D UI run standalone or mapped onto a 3D watch model. Concrete code snippets illustrate techniques like adjustable antialiasing for glow effects, gradient-based fades, box shadows via SDF, and grid pattern brushes, all without writing any C++.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.qt.io/blog/canvas2d-watchui-demo>

## Questions this post answers

### How does Qt Canvas2D differ from Qt Quick Canvas in terms of rendering performance?

Canvas2D renders directly into the Qt Quick scene graph with no intermediate QImage and no per-frame texture upload, unlike Qt Quick Canvas which incurs a per-frame texture upload cost. Canvas Painter turns imperative path drawing into cached vertex buffers and a small number of draw calls, making it suitable for fully animated, per-frame-repainted custom visualizations without dropping to C++.

_Developers weighing canvas rendering options in Qt can compare tradeoffs like these on daily.dev._

### How can I create a glow effect on lines drawn with Canvas2D without a blur pass?

Stroke the same path twice with different antialiasing widths: first with a wide stroke and a high antialias value like 10 pixels to create a soft halo, then a second crisp stroke with antialias set to 1 for the sharp core. This achieves a glow using only two draw calls, no blur pass, and no extra render target, relying on Canvas2D's adjustable antialiasing feature.

_Anyone prototyping glow or line-art effects in QML canvas work can save techniques like this on daily.dev._

### What is the technology preview status of the custom shader brush feature in Qt Canvas Painter as of Qt 6.12?

Custom shader brushes for Canvas Painter are still a technology preview in Qt 6.12 and not yet supported directly by Canvas2D. The feature would let developers fill shapes like water in a glass directly with a custom bubble brush, removing the need for a separate shader render step, but it is still being fine-tuned for more power and is not yet production-ready.

_Teams tracking which Qt 6.12 graphics APIs are stable versus preview can follow updates like this on daily.dev._

## Similar posts on daily.dev

- [Introducing the Canvas2D Coding Skill for Agentic Development of Embedded Device UIs](https://daily.dev/posts/introducing-the-canvas2d-coding-skill-for-agentic-development-of-embedded-device-uis-v80f8g4cu) · Qt · 2 upvotes · 0 comments
- [2D Rendering - Introducing Qt Canvas Painter](https://daily.dev/posts/2d-rendering---introducing-qt-canvas-painter-huyota205) · Qt · 0 upvotes · 0 comments
- [Canvas2D: New QML canvas element using Qt Canvas Painter](https://daily.dev/posts/canvas2d-new-qml-canvas-element-using-qt-canvas-painter-shbrjjkzc) · Qt · 0 upvotes · 0 comments
- [Canvas UI Ships 35 HTML-in-Canvas Components That Run WebGL and WebGPU Effects Over Live DOM](https://daily.dev/posts/canvas-ui-ships-35-html-in-canvas-components-that-run-webgl-and-webgpu-effects-over-live-dom-tfekmd60e) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#game-development](https://daily.dev/tags/game-development), [#qml](https://daily.dev/tags/qml), [#qt](https://daily.dev/tags/qt)

[View this post on daily.dev](https://daily.dev/posts/canvas2d-watchui-demo-i0w2xwc5s)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Canvas2D: WatchUI Demo","url":"https://daily.dev/posts/canvas2d-watchui-demo-i0w2xwc5s","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/canvas2d-watchui-demo-i0w2xwc5s"},"datePublished":"2026-09-23T10:37:12.822Z","dateModified":"2026-10-15T02:22:41.196Z","description":"A deep-dive walkthrough of WatchUI, a smartwatch demo app built to showcase Canvas2D, the new GPU-accelerated QML painting API in Qt 6.12, combined with Qt...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b7e706c8e982edaadea99bd12f513f0a?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b7e706c8e982edaadea99bd12f513f0a?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Qt","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Qt","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/fe6d7c1f4f824966befd58ee13f9de40","url":"https://daily.dev/sources/qt"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/canvas2d-watchui-demo-i0w2xwc5s","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"game-development,qml,qt","timeRequired":"PT17M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Qt","item":"https://daily.dev/sources/qt"},{"@type":"ListItem","position":3,"name":"Canvas2D: WatchUI Demo"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/canvas2d-watchui-demo-i0w2xwc5s#faq","mainEntity":[{"@type":"Question","name":"How does Qt Canvas2D differ from Qt Quick Canvas in terms of rendering performance?","acceptedAnswer":{"@type":"Answer","text":"Canvas2D renders directly into the Qt Quick scene graph with no intermediate QImage and no per-frame texture upload, unlike Qt Quick Canvas which incurs a per-frame texture upload cost. Canvas Painter turns imperative path drawing into cached vertex buffers and a small number of draw calls, making it suitable for fully animated, per-frame-repainted custom visualizations without dropping to C++. Developers weighing canvas rendering options in Qt can compare tradeoffs like these on daily.dev."}},{"@type":"Question","name":"How can I create a glow effect on lines drawn with Canvas2D without a blur pass?","acceptedAnswer":{"@type":"Answer","text":"Stroke the same path twice with different antialiasing widths: first with a wide stroke and a high antialias value like 10 pixels to create a soft halo, then a second crisp stroke with antialias set to 1 for the sharp core. This achieves a glow using only two draw calls, no blur pass, and no extra render target, relying on Canvas2D's adjustable antialiasing feature. Anyone prototyping glow or line-art effects in QML canvas work can save techniques like this on daily.dev."}},{"@type":"Question","name":"What is the technology preview status of the custom shader brush feature in Qt Canvas Painter as of Qt 6.12?","acceptedAnswer":{"@type":"Answer","text":"Custom shader brushes for Canvas Painter are still a technology preview in Qt 6.12 and not yet supported directly by Canvas2D. The feature would let developers fill shapes like water in a glass directly with a custom bubble brush, removing the need for a separate shader render step, but it is still being fine-tuned for more power and is not yet production-ready. Teams tracking which Qt 6.12 graphics APIs are stable versus preview can follow updates like this on daily.dev."}}]}
```

