Add C++ variant of x0 framework with Qt and nlohmann::json#193
Draft
Add C++ variant of x0 framework with Qt and nlohmann::json#193
Conversation
Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
…andling Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add C++ variant with nlohmann::json and Qt rendering
Add C++ variant of x0 framework with Qt and nlohmann::json
Jan 5, 2026
clauspruefer
requested changes
Jan 14, 2026
Member
clauspruefer
left a comment
There was a problem hiding this comment.
@copilot Take all examples found in /example to verify that this PR / code works correctly.
Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
Contributor
Author
Added a test ( Test results (commit 8725a0a): All examples validated successfully:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
C++ implementation of the x0 JavaScript framework using nlohmann::json for configuration management and Qt for graphical rendering.
Architecture
Maps 1:1 to JavaScript classes in
/www/:sysBaseDOMElement.jsx0BaseElementsysBaseObject.jsx0BaseObjectsysFactory.jsx0FactorysysScreen.jsx0ScreensysReactor.jsx0ReactorsysObjDiv.jsx0ObjDivsysObjButton.jsx0ObjButtonFiles Added
cpp/CMakeLists.txt- Build config with Qt5/Qt6 support, auto-fetches nlohmann::jsoncpp/include/*.h- Core headerscpp/src/*.cpp- Implementationscpp/test/test_examples.cpp- Test validating all/exampleconfigurationscpp/README.md- Usage and extension guideUsage
Same JSON config format as JavaScript version:
{ "ActionButton": { "Type": "Button", "Attributes": { "Style": "btn btn-primary", "TextID": "BTN.SUBMIT", "OnClick": "/api/submit" } } }Building
Testing
A test (
cpp/test/test_examples.cpp) validates that the C++ framework correctly parses all 15 example configurations from/example:Validated examples: add_object_table_column, basic_menu_screen, basic_tabcontainer, bootstrap_rowspan, copy_paste, enhanced_form, list_detail_switch_screen, list_dyn_radio, list_objectdata_grid, multi_tabcontainer, net_messages, object_instances, open_close_container, screen_overlay, tree_simple
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.