Hybrid Application Generator
What are hybrid apps?
Hybrid application in this context means an application that combines Qt with web technologies. With QtWebKit, Qt developers can create applications that have web UI, utilizing new powerful features of web, like HTML 5 and CSS 3. QtWebKit allows
- Intuitive use of network resources
- Easily embedding web content into an application
- Content that may be enhanced with native controls
Hybrid applications enable developers to
- Build a Qt application – a native application
- Create an application that works on all platforms where Qt is supported
Hybrid Application Generator
With the Hybrid Application Generator, web developers can easily develop Qt applications, without writing a single line of C++ code. Secondly, no SDK is needed for application development.
The result is a system that allows developers to use web technologies to quickly create services that can then be converted to Qt applications to enable simple delivery and installation to a variety of mobile devices. However, unlike pure widget applications, hybrid applications retain the power and flexibility of native code.
By enabling the remote compilation feature, you don't need to install local Symbian or Maemo SDKs(nor Nokia Qt SDK) to get the applications built.
Login to remote compilation only requires Nokia Developer account
The remote compiler lists all the available build options from the server
The preview launcher lets you to have a look on how the build result will appear on device.
Web content can be tested on the preview launcher without building
The preview launcher provides several device resolutions to test with
The settings are useful for quickly adjusting the release options.
The settings view covers the needed adjustments according to the selected build option
Window options are used to select the screen layout in the application
Use cases and examples
Hybrid Application Generator can be used to create hybrid applications from WRT widgets, directories containing HTML content, or by grabbing live web pages.
The Alpha release comes with a few example applications, which demonstrate some of the different use cases:
MeeGo.com web page
This is a grab of the MeeGo.com site showing MeeGo architecture. The purpose of the demo is to show an example of a hybrid application made out of a web page. The page still allows normal navigation via hyperlinks.
Menu example web page
This example demonstrate adding two menu items to the application’s menu, accessible via the left soft key. In preview mode, the items will be shown in the window’s menu bar.
GPS example web page
This example takes the current GPS location and shows an alert box containing the device’s latitude, longitude, and altitude.
Hybrid Application Generator has a command-line interface that can be used to provide functionality to e.g. third party IDEs. An example of Aptana Studio 2.0 integration is available at Hybrid Application Generator pages at Nokia Developer Wiki.
To enable the plugin, copy the .jar file to Aptana Studio plugins directory and restart Aptana. New functionality should appear: an icon to the Aptana toolbar, and a new menu for creating an application of the current project.
The Aptana integration is still experimental and can be used only with local SDKs. Remote generator support is a planned feature for upcoming releases.
Download the Hybrid Application Generator Alpha. The package includes User's Guide with the installation and system requirements instructions. Currently we're offering the installer only for windows.
Download the Aptana Studio 2.0 plugin here. This is a .jar file that should be copied to the Aptana plugin folder.
The project is open source. Get the full source code and start contributing from https://projects.developer.nokia.com/QtHybrid
Also please feel free to provide feedback about the project and its documentation on the project's space.