Files
MemRelay/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/Checkpoint 2026-11-21 16-39-39 UTC [3ee9e5847f].md
T
memrelay b66c95005d create: Checkpoint 2026-11-21 16:39:39 UTC [3ee9e5847f]
MemRelay-Operation: checkpoint-save:uiframe-ckpt-20261122-qt-rust-demo
MemRelay-Resource: fdd30c12-76d5-41fe-8b1e-2bca21583b1a
2026-11-22 00:39:43 +08:00

26 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Checkpoint 2026-11-21 16:39:39 UTC [3ee9e5847f]
type: checkpoint
permalink: main/projects/0017cd22-9dea-4f87-9595-fc050356ff3c/checkpoint-2026-11-21-16-39-39-utc-3ee9e5847f
stable_id: fdd30c12-76d5-41fe-8b1e-2bca21583b1a
scope: project
memory_type: checkpoint
project_id: 0017cd22-9dea-4f87-9595-fc050356ff3c
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: uiframe-ckpt-20261122-qt-rust-demo
created_at: '2026-11-21T16:39:39.769173+00:00'
updated_at: '2026-11-21T16:39:39.769173+00:00'
tags:
- ui
- qt
- rust
- demo
---
已在 E:\\code\\UIFrame\\qt\\rust 写好 Rust + Qt 6.12 Widgets 例程,并用 MSVC 编译通过,窗口能启动。
结构:src/main.rs 启动;src/bridge.rs 是 cxx-qt 桥;src/logic.rs 用 Rust 读写控件;src/theme.rs 是三套 QSS;cpp/demo_ui.cpp 创建按钮、编辑框、密码框、日期、时间、列表、树、分组框、分页夹。换肤由 Rust 整份替换样式表并重新 polish。
运行需要 QMAKE 指向 D:\\Qt\\App\\6.12.0\\msvc2022_64\\bin\\qmake.exe,并把该 bin 加进 PATH。已写 qt/rust/run.ps1 和 .cargo/config.toml。安装目录是 D:\\Qt\\App。