Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
Files:
This page provides instructions for creating a new application that will run within Qt Extended. The information presented here is suitable for third party users of Qt Extended.
The name of the new application is MyNewApp, but a different name can be substituted. The example provided in examples/application in the Qt Extended directory, will provide a base for the new application.
The instructions assume the following:
When creating a new Qt Extended application the following files are of particular importance
File Name | Description |
---|---|
qbuild.pro | The qbuild.pro file is used to describe how the application is to be built. For hints on what content be added see the example application's qbuild.pro; see also Project Files |
.desktop | Each application will have a .desktop file to give application information to Qt Extended, such as what icon to use to display the application in the application launcher list, see also Desktop File Standard |
.ui | Some applications will have .ui files that has been generated by Qt Designer to specify the user interface for the application, see Qt Designer Manual |
.ts | Some applications will have .ts files to support Internationalization, see also Internationalization |
export QTOPIA_SOURCE_PATH=$HOME/src/qt-extended-<version> export QPEDIR=$HOME/build/qt-extended-<version>-qvfb
(Note that these are example locations, only.) This assumes that the source directory and the build directory are in different locations; these variables might point to the same location.
mkdir $HOME/src/mynewapp cd $HOME/src/mynewapp cp -r $QTOPIA_SOURCE_PATH/examples/application/* . chmod +w *
rename example mynewapp example* mv help/html/example.html help/html/mynewapp.html mv pics/Example.png pics/MyNewApp.png
$QPEDIR/bin/qbuild # build source files $QPEDIR/bin/qbuild image # install the created application into image
There should now be an executable version of mynewapp in the directory $QPEDIR/image/bin.
$QPEDIR/bin/runqtopia
The application MyNewApp should appear in the Applications list on the desktop display. Running the application should reveal a simple UI containing a label and a button. Help documentation is also available from the context menu.
MyNewApp can now be modified to incorporate new or existing code. Qt and Qt Extended public classes can be used to facilitate this process. Qt Designer can be used to generate a new user interface file (mynewappbase.ui) for the application. Alternatively, a new user interface can be coded by hand. Help documentation should be provided by modifying help/html/mynewapp.html.
To generate a completely new qbuild.pro file with the files found in the current directory, use the command:
$QPEDIR/bin/qbuild -project
then edit the qbuild.pro project as required. See also Create a new project file.
For information on how to improve application startup times (including the use of Quicklauncher), please refer to: Writing Applications that Start Quickly.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |