Quantcast
Channel: Maemo Nokia N900 » qt web runtime dla n 900
Viewing all articles
Browse latest Browse all 2

Unofficial Qt Web Runtime tutorial 2: Menu API

$
0
0

If there is no API, Qt WRT is merely nothing but a naive web browser. Then what APIs are supported other than standard HTML and JavaScript now? You can first get a list of features already supported, or to be supported in the near future here.

As a summary, we have already supported the APIs of menus, widget object, URI schemes, web inspector, console log, some Device APIs, as well as some HTML 5 features and standard JavaScript from Qt WebKit. Let’s start with the menu API.

1 view menu
You can create the menu items to the chrome’s menu bar (we call it view menu) with the following JavaScript code:
var menuItem = new nokia.device.MenuItem("Menu item", changeTitle);
function changeTitle()
{


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images