首页| 论坛| 消息

标题:WebApps written in QML: Not far from Reality anymore
作者:XChinux
日期:2013-07-13 18:15
内容:

转自:http://akreuzkamp.de/2013/07/10/webapps-written-in-qml-not-far-from-reality-anymore/

WebApps written in QML: Not far from Reality anymore

Haveyou ever tried to vertically center an element using CSS or wanted anelement to just use the whole remaining space or similar things? Did youever struggle with complex interfaces when writing a modern website?Did you ever use QML for a desktop-app and were in wonder how amazinglyit just works? Then there probably was also the point where youthought ”why can’t I just use QML for my webapp?”. So have I.

And in fact it is nearer to reality than you would think: Say hello to QmlWeb.

QmlWeb is a JavaScript library that is able to parse QML-code andcreate a website out of it using normal HTML/DOM elements and absolutepositions within CSS, translating the QML properties into CSSproperties. Currently it’s also able to paint into a canvas but ascanvas is far less powerful, that’s probably going to be dropped. Sousing the DOM-backend there is no need for HTML5. The webbrowser needsto support ECMAScript5 for now, though.

QmlWeb is a small project by Lauri Paimen that he’s already developingfor a few years now. In the last months, I entered into the developmentrefactoring parts of the library, so by now Lauri yielded themaintainance to me. The biggest part of the credits, though, are due tohim.
As of today, I’m proud to announce that QmlWeb will be from now on a KDE-Project.
.

(A small prototype of a website for QmlWeb – of course written using QML .  )
QmlWeb of course doesn’t yet support everything Qt’s implementationof QML does, but it already supports a quite usable subset of it. Itsupports nearly all of the most basic QML syntax. The element types itsupports, areItemRectangleTextI ..


#1 [彩阳 07-13 20:02]
这是我们桌面开发者转web开发的一个好机会。
#2 [XChinux 07-13 20:20]
它这个似乎是写了个JS库,用于解析翻译.qml成HTML/CSS..
唯一的好处是能用QML写界面,似乎是比学习html/css/dom容易些.
#3 [XChinux 07-13 21:12]
如果是像flash/silverlight那样做一个浏览器插件,以运行qml/js混合代码或代码包,这样如何.
#4 [toby520 07-14 17:26]
关注下Webapp of QML
#5 [XChinux 07-14 22:18]
换一个方式讲,前端qml/js,后端为C++(即客户端形式)或PHP/Java/C#(服务器端)等,这样也不错。

<< 1 2 >> (1/2)

回复 发表
主题 版块