Skip to content

QML form shell with dynamic page loading#8

Draft
Yaraslaut wants to merge 1 commit into
masterfrom
feature/qml-shell
Draft

QML form shell with dynamic page loading#8
Yaraslaut wants to merge 1 commit into
masterfrom
feature/qml-shell

Conversation

@Yaraslaut

Copy link
Copy Markdown
Member

Summary

Adds a new morph_forms_shell executable — a Qt Quick shell that provides tree-navigable page loading for both built-in schema-generated forms and user-provided QML pages.

Key components

  • PageTreeModel: QAbstractItemModel with folder/page nodes, JSON persistence via QStandardPaths::AppConfigLocation, full tree mutation API
  • FormsShellController: QML_ELEMENT controller owning bridge + page tree, also exposed as morphController context property
  • FormShell.qml: Sidebar with TreeView, content Loader for dynamic page switching
  • FormPage.qml: Wraps existing DynamicForm from MorphForms module as a full-page component
  • PageConfigDialog.qml: Modal dialog for managing page tree (add/remove/rename/toggle visibility)

Build

cmake -B build -G Ninja -DMORPH_BUILD_FORMS_QML=ON -DMORPH_BUILD_FORMS_QML_SHELL=ON
cmake --build build --target morph_forms_shell

Docs

docs/superpowers/2026-07-12-qml-shell.md

Adds a Qt Quick shell (morph_forms_shell) with:
- PageTreeModel: QAbstractItemModel for hierarchical page navigation
- FormsShellController: bridge owner + page tree, exposed as
  morphController context property
- FormShell.qml: dark sidebar with TreeView + content Loader
- FormPage.qml: wraps DynamicForm as a full-page component
- PageConfigDialog.qml: tree management popup (add/remove/rename pages)
- Cross-platform persistence via QStandardPaths::AppConfigLocation
- CMake option MORPH_BUILD_FORMS_QML_SHELL (requires FORMS_QML)

Superpowers doc: docs/superpowers/2026-07-12-qml-shell.md
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant