From d187c23c2d00b797fb91a55826a328904a52ba1c Mon Sep 17 00:00:00 2001 From: Burak Hancerli <burak.hancerli@qt.io> Date: Thu, 7 Dec 2023 10:46:00 +0100 Subject: [PATCH] doc: update readme --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ccd5ccb..b2e0988 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,32 @@ cmake \ -B build \ -G Ninja \ -DCMAKE_PREFIX_PATH=<qt-wasm-path> \ - -DCMAKE_INSTALL_PREFIX=<qt-wasm-path> \ + -DCMAKE_INSTALL_PREFIX=build/install \ -DCMAKE_TOOLCHAIN_FILE=<qt-wasm-path>/wasm/lib/cmake/Qt6/qt.toolchain.cmake cmake --build build +cmake --install build ``` +## Running + +You can use 'qtwasmserver' package to run the Qt Design Viewer: + +To install the package: + +```bash +python -m pip install qtwasmserver +``` + +And then run the server: + +```bash +cd build/install +qtwasmserver . +``` + +Then open <http://localhost:8000> in Your web browser. + ## Usage Compress Your Qml project as a _.zip_ file, ideally including a _.qmlproject_ file. Or use the _Build -> Generate Resource File_ feature of Qt Design Studio 1.3+ to pack Your project in a _.qmlrc_ file. -- GitLab