Getting started with Qt HTML5



  • 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



  • 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.



  • Two reasons for using Qt:

    • Access to device capabilities
    • Deployment as a stand-alone application


  • [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]



  • 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).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.