Namespaces
Variants
Actions

QtWebKitStub

Jump to: navigation, search
Article Metadata

Code Example
Article
Created: tapla (10 Feb 2010)
Last edited: hamishwillee (13 Aug 2012)


Contents

Author

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

Overview

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.

Features

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 13 August 2012, at 02:24.
118 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved