Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.


From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleCompatibility
Created: tapla (10 Feb 2010)
Last edited: hamishwillee (12 Aug 2012)



This article was written by tapla
Moderator Note:- Due to missing a category became lost on Wiki for some months


The QtWebKitStub is a template application for Web developers who want to create mobile applications with Qt by utilizing their existing skills. You can download the stub application from here: QtWebKitStub v.1.0. You may also want to read the Porting WRT widgets to Qt applications Wiki article for background information about Qt and Web "hybrid" applications.


The QtWebKitStub application contains the following features:

  • Closing the application from JavaScript (the exit() function).
  • Minimizing the application (the minimize() function). The function shows the task switcher on Maemo, does nothing on Symbian, and minimizes the application on PC.
  • Support for dynamic scalability (if, for example, the orientation of the device changes, the layout of the application changes as well).
  • Four different CSS files (style/qtwebkitstub.css, style/nhd_portrait.css, style/nhd_landscape.css, and style/wvga_landscape.css), which are enabled and disabled at runtime based on the resolution.
  • The main HTML file (html/index.html) for the UI.
  • Two JavaScript files (script/qtwebkitstub.js and script/common.js) for application logic.
  • One graphics file (the exit button, gfx/exit.png).
  • A Qt resource file (qtwebkitstub.qrc) into which the developer can add his or her own resources.
  • Code comments to assist if the developer needs to modify the Qt code.

See also

This page was last modified on 12 August 2012, at 23:24.
45 page views in the last 30 days.