Specifications

SHARP CORPORATION
Sharp SL-series Zaurus “Qtopia” Development Start-up Guide
Ver 1.11, February 28, 2003, 22/63
As shown in the above example, you would first load the translation file (*.qm file) to the Qtranslator class, and
then install to the Qapplication class. Note that this “msg2qm” command is not included in the Qtopia SDK, and
thus you would have to build it for x86 from the source included in free verion of the Qt/Embedded, or use a tool in
Qt/X11.
2.3. Special Recommendations for the SL-series Zaurus Applications
In order to provide unified and a better user experience to the SL-series Zaurus users, Sharp requests and
strongly recommends application developers to implement the following features in your application for the
SL-series Zaurus.
2.3.1. Operation of “Menu” Key
The default (pre-installed) SL-series Zaurus applications are designed to “open” the “menu” of the application
itself, and “close” the opened “menu” of the application, when the “Menu” key is pressed.
In addition, the default applications implement a function allowing users to use cursor keys to change focus of the
“menu” if there are multiple menus on the application’s menu bar(e.g. “File” “Edit”, etc.). The following example
will allow you to use “menu” button to work as recommended.
main.cpp
#include <qpeapplication.h>
#include "appsample.h"
#include <qstring.h>
#include <stdio.h>
int main( int argc, char ** argv )
{
QPEApplication a( argc, argv );
AppSample mw;
a.showMainDocumentWidget( &mw );
return a.exec();
}