Installation¶
Install the CLI¶
Set Up the SDK¶
Run squared setup once after installing the CLI:
This installs:
- Squared host app — pre-built binary for running and previewing apps
- SDK type stubs — IDE autocomplete for
Squared.UIandSquared.SDK
Use --force to reinstall if needed:
IDE Support¶
The SDK provides autocomplete for:
- Squared.UI — 28 themed QML components (
SButton,SCard,SPage, etc.) plusSThemeandIconCodes - Squared.SDK —
Storage,SecureStorage,Network, andAppAPIs
Projects created with squared init include a CMakeLists.txt that references the SDK. Run cmake -B build in your project to generate type info for qmlls.
Works with any editor that supports Qt's QML Language Server:
- Qt Creator — built-in support
- VS Code — install the Qt QML extension
- Neovim — configure qmlls as an LSP server
Prerequisites (Building from Source)¶
If you want to build the host app from source instead of using squared setup:
- Qt 6.10.2 — set
QT_DIRor install to/opt/Qt/6.10.2 - CMake 3.21+ and Ninja
- C++20 compiler (GCC 13+, Clang 16+, MSVC 2022)
git clone https://github.com/learnqtkenya/SquaredApp.git
cd SquaredApp
cmake -G Ninja -B build -DCMAKE_PREFIX_PATH=/opt/Qt/6.10.2/gcc_64
cmake --build build