Giter Club home page Giter Club logo

qmlonline's Introduction

QmlOnline

This repo produce a Qt application that allows to run Qml code interactively. The resulting application can access QML types defined in C++. The purpose of this repo is to show online some C++/Qt/Qml projects. For doing that the repo contains a wasm folder that produce a web page, integrating a JavaScript code editor to the compiled Qt application of this repo. The integration is made by compiling the Qt application to Webassembly.

Compile the WASM file and Qt-JavaScript Api

Clone the repo

git clone [email protected]:EddyTheCo/qmlonline.git qmlonline

Create build directory and build from there.

mkdir build 
cd build
Qt../wasm_../bin/qt-cmake -DCMAKE_BUILD_TYPE=Release ../qmlonline/
cmake --build .

If everything went well, the corresponding WASM file and Qt-JavaScript Api should be updated on the qmlonline/wasm source directory.

Running the web page locally

cd ../qmlonline/wasm
emrun  index.html

Notes on this

It is necessary to have installed Qt for WebAssembly.

Acknowledgments

  • The general programming idea was taken from QML Online.
  • The embeddable code editor in JavaScript is supported by Ace JavaScript sources.

qmlonline's People

Contributors

eddytheco avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

daniellobanov

qmlonline's Issues

Add a separated web page to test develop

At the moment the repo build wasm on pr to develop to test if builds ok. But we can only see the runtime after emerging to main.

It will be nice to have a workflow that checks out all branches and tags and builds the application.
Put all this together and deploy the webpage.

The webpage by default shows the main branch, but one can choose another tag or branch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.