Getting started with Qt HTML5
-
wrote on 21 Feb 2011, 11:23 last edited by
I'd like to create a Qt application based on HTML, Javascript and CSS
What would be the best way to start (using a QML and a WebView, using a C++ wrapper around WebKit)?
Is there a relevant example or tutorial?Is there a Javascript API for native functionality (e.g. camera)?
Thanks,
Youval
-
wrote on 21 Feb 2011, 11:28 last edited by
If you want to do a HTML 5 app, why do you want to make it a Qt application? What do you expect from Qt, if all you use is web technology?
QML can embed a webview, but so can any C++ based application. There is, AFAIK, no Javascript API for native functionality like the camera, but there is QtMobility that gives you a API to it. You can use Qt to give access to that from WebKit and/or QML, if not done already for you. However, that takes some C++ coding.
-
wrote on 21 Feb 2011, 12:02 last edited by
Two reasons for using Qt:
- Access to device capabilities
- Deployment as a stand-alone application
-
wrote on 21 Feb 2011, 12:23 last edited by
[quote author="youval" date="1298289774"]Two reasons for using Qt:
- Access to device capabilities
- Deployment as a stand-alone application[/quote]
Yes, these are two interesting reasons. :)
Well, to begin with, check the tutorials and/or educational materials. For example, you could start with http://qt.nokia.com/services-partners/qt-in-education/qt-in-education-course-material [qt.nokia.com]
-
wrote on 21 Feb 2011, 12:27 last edited by
If you only want to use web technology, I think using a thin C++ wrapper would be preferable to using a QML environment (which also needs a thin C++ wrapper).
5/5