Simple and flexible web framework

Write everything in QML and JavaScript

HTMLXML / JSONCSSImageJava
Script
QML with JavaScript
QtWebService web server

HTML

import QtWebService.HTML 5.0

Html {
    Head { ... }
    Body {
        H1 { text: 'title' }
        P { text: '...' }
    }
}

XML

import QtWebService.XML 1.0

Tag {
    tagName: 'tag'
    text: 'text'
}

JSON

import QtWebService.JSON 1.0

Json {
    object: {
        'key': 'width'
        , 'value': 100
    }
}

CSS

import QtWebService.CSS 3.0

Css {
    Rule {
        selector: 'body'
        background_color: '0'
    }
    ...
}

Text

import QtWebService.Text 1.0

Text {
    text: 'Hello World!'
}

WebSocket

import QtWebService.WebSocket 1.0

WebSocket {
    onReady: accept()
    onMessage: send(message.data);
}

Image

import QtWebService.Image 1.0

Image {
    id: root
    width: 100
    height: 100
    contentType: 'image/png'
    source: './qt-logo.png'

    Text {
        y: 70
        text: 'Hello World'
    }
}