案例研究:面向web的QML

Lauri Paimen, P. Pohjalainen
{"title":"案例研究:面向web的QML","authors":"Lauri Paimen, P. Pohjalainen","doi":"10.1109/WSE.2011.6081822","DOIUrl":null,"url":null,"abstract":"QML is a declarative programming language for defining user interfaces with advanced animation effects. A QML application consists of element declarations for structuring the user interface, and Javascript code for defining the application and animation logic. QML is used mainly for defining user interfaces of Qt applications, but it can be used also for writing standalone applications. This paper presents an approach that allows QML applications to run in a standard web browser. The chosen approach was to reimplement the QML execution engine by writing a QML parser and execution engine in Javascript to render the application to a HTML5 Canvas element. We discuss our implementation techniques for QML property bindings and for redefining variable scope in Javascript. For demonstrating the results, we executed two simple QML applications in a web browser, and gathered preliminary performance benchmark of the engine. In our measurements we found that with a good Javascript-engine, it is possible to achieve reference 60 fps speed of QML applications in a non-trivial case.","PeriodicalId":414937,"journal":{"name":"2011 13th IEEE International Symposium on Web Systems Evolution (WSE)","volume":"64 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2011-11-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Case study: QML for the web\",\"authors\":\"Lauri Paimen, P. Pohjalainen\",\"doi\":\"10.1109/WSE.2011.6081822\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"QML is a declarative programming language for defining user interfaces with advanced animation effects. A QML application consists of element declarations for structuring the user interface, and Javascript code for defining the application and animation logic. QML is used mainly for defining user interfaces of Qt applications, but it can be used also for writing standalone applications. This paper presents an approach that allows QML applications to run in a standard web browser. The chosen approach was to reimplement the QML execution engine by writing a QML parser and execution engine in Javascript to render the application to a HTML5 Canvas element. We discuss our implementation techniques for QML property bindings and for redefining variable scope in Javascript. For demonstrating the results, we executed two simple QML applications in a web browser, and gathered preliminary performance benchmark of the engine. In our measurements we found that with a good Javascript-engine, it is possible to achieve reference 60 fps speed of QML applications in a non-trivial case.\",\"PeriodicalId\":414937,\"journal\":{\"name\":\"2011 13th IEEE International Symposium on Web Systems Evolution (WSE)\",\"volume\":\"64 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2011-11-18\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2011 13th IEEE International Symposium on Web Systems Evolution (WSE)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/WSE.2011.6081822\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2011 13th IEEE International Symposium on Web Systems Evolution (WSE)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/WSE.2011.6081822","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

摘要

QML是一种声明性编程语言,用于定义具有高级动画效果的用户界面。QML应用程序由用于构造用户界面的元素声明和用于定义应用程序和动画逻辑的Javascript代码组成。QML主要用于定义Qt应用程序的用户界面,但它也可以用于编写独立的应用程序。本文提出了一种允许QML应用程序在标准web浏览器中运行的方法。所选择的方法是通过在Javascript中编写QML解析器和执行引擎来重新实现QML执行引擎,从而将应用程序呈现给HTML5 Canvas元素。我们将讨论QML属性绑定和在Javascript中重新定义变量作用域的实现技术。为了演示结果,我们在web浏览器中执行了两个简单的QML应用程序,并收集了该引擎的初步性能基准。在我们的测量中,我们发现使用一个好的javascript引擎,在一个重要的情况下,QML应用程序可以达到参考60 fps的速度。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Case study: QML for the web
QML is a declarative programming language for defining user interfaces with advanced animation effects. A QML application consists of element declarations for structuring the user interface, and Javascript code for defining the application and animation logic. QML is used mainly for defining user interfaces of Qt applications, but it can be used also for writing standalone applications. This paper presents an approach that allows QML applications to run in a standard web browser. The chosen approach was to reimplement the QML execution engine by writing a QML parser and execution engine in Javascript to render the application to a HTML5 Canvas element. We discuss our implementation techniques for QML property bindings and for redefining variable scope in Javascript. For demonstrating the results, we executed two simple QML applications in a web browser, and gathered preliminary performance benchmark of the engine. In our measurements we found that with a good Javascript-engine, it is possible to achieve reference 60 fps speed of QML applications in a non-trivial case.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信