首页›Planet KDE›文章

MVVM in C#: What Changes When You Switch UI Frameworks?

Qt Dev Loop · 2026年11月26日

AI 摘要 AI 生成,可能有误

本文解答了 Qt Bridge for C# 发布后开发人员经常提出的一个问题:在切换 UI 框架时,应用程序的 C# MVVM 后端是否还能继续正常工作。作者确认,在迁移到 Qt Quick / QML 用户界面时,C# MVVM 后端的工作方式完全相同。他们将其归因于两个主要因素:C# 桥接如何将 C# 与 Qt Quick 结合起来,以及 MVVM 所倡导的内在设计原则。

"If I change UI frameworks, will the C# MVVM backend of my application still work?" This is the most frequent question that we've received from developers since releasing the Qt Bridge for C#. We wanted to provide some detailed information to back the answer to that question, which is: yes, when moving to a Qt Quick / QML UI, your C# MVVM backend will still work in the exact same way. As we will see in the course of this blog post, this is due to two major factors: a) how C# and Qt Quick are brought together by the C# bridge, and b) the intrinsic design principles promoted by MVVM.

继续阅读全文

为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。

更多来自 Planet KDE

Harmonicon in Light and Dark

AI 摘要Harmonicon has introduced new Light and Dark themes, showcased through its Bending Trainer, which listens via the microphone to help players practise pitch bends, such as drawing on hole 2 from G down to F♯. The Light theme features a soft blue-grey background with a white card, while Dark evokes an evening practice room with a deep blue background that makes the warmer notes and green target band stand out. Users can switch between the two looks under Options → Theme, and Harmonicon remembers their choice for future sessions.

KStars 3.8.6 Released

AI 摘要KStars v3.8.6, released on December 1, 2026 for Windows, Linux, and macOS, is a major update that adds flat calibration via light box brightness adjustment, failure diagnosis with suggested fixes for Align, Focus, Guiding, and capturing, plus field derotation for Alt-Az mounts and live tracking of planets while streaming. The release also hardens the Scheduler for real-world observing nights and delivers a long list of crash fixes across Ekos, alongside improvements to Live Stacking, the FITS Viewer, the Sky Map, and DBus integration. Linux users are encouraged to install the official KStars Flatpak from Flathub.

A Health Overview

AI 摘要Modern software development depends on a supply chain of components, making it important to track whether those dependencies meet quality standards. The article describes Ensline Pilot, a tool being built to give organizations an overview of their software supply chain health through dashboard cards, component scores, and spider graphs across six dimensions compared against minimum requirements. The goal is to help everyone from management to engineering make informed decisions, and the author welcomes feedback on what such a health view should include.

Introducing the Qt Widget to Qt Quick Skill: Automating 80% of Porting

AI 摘要Porting an existing Qt Widgets user interface to Qt Quick is a major investment, as every screen, dialog, menu, and toolbar must be rebuilt, custom-drawn elements redesigned, and application logic separated from the screens, followed by screen-by-screen verification against the original. For teams wanting a modern, fluid, touch-friendly interface, this adds up to weeks or months of repetitive work. The newly introduced Qt Widget to Qt Quick Skill automates around 80% of this porting effort.

November 2026 in KDE Linux

AI 摘要The November 2026 edition of This Month in KDE Linux reports progress on KDE's next-generation operating system, including a new BuildStream-based edition built from Flatpak SDKs that is now in a testable state, plus improvements like a read-only /etc with a writable overlay, working icon caching, and various bug fixes. The team also enhanced CI and testing by moving OpenQA tests into the main repo, parallelizing test steps, and upgrading to a VM-based testing system. KDE Linux remains 85% of the way to its Beta milestone, and users are invited to help through support, bug reporting, documentation, Flatpak app fixes, or OS development.