diff --git a/README.md b/README.md index ccd5ccb1db46a33bc636e4c433293e059bb931e1..b2e098870541acbe79ff0abaaba2e34c94e7d114 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.