Using Maemo or MeeGo Harmattan EmulatorThe Maemo 5 (Fremantle) and MeeGo Harmattan emulator are installed as part of the Qt SDK. After they are installed, you can start them from Qt Creator. The Maemo 5 emulator emulates the Nokia N900 device environment. You can test applications in conditions practically identical to running the application on a Nokia N900 device with software update release 1.3 (V20.2010.36-2). The MeeGo Harmattan emulator emulates the Nokia N9 device environment. With the emulators, you can test how your application reacts to hardware controls, such as the power button, and to the touch screen. To test the application UI, user interaction with the application, and functionality that uses the mobility APIs, use the Qt Simulator, instead. For more information, see the Qt Simulator Manual. The difference between Qt Simulator and the emulators is that when you compile your application binary for Qt Simulator, it is compiled against a host library. The binary run on the emulator is compiled for the actual device, using the Maemo 5 or Harmattan tool chain. Starting the EmulatorThe Start MeeGo Emulator button is visible if you have a project open in Qt Creator for which you have added the Maemo or MeeGo Harmattan build target. It starts the Maemo or MeeGo Harmattan emulator, depending on the selected target. To start the emulator, click . Test your application on the emulator as on a device. For a list of keyboard shortcuts that you can use to emulate keys and functions, see Emulating Device Keys. Rendering GraphicsThe emulators support OpenGL to improve graphics rendering. Hardware acceleration produces better results than software rendering. By default, Qt Creator automatically detects, whether hardware acceleration is supported on the development PC and tries to use it. However, sometimes the results of the automatic detection are not reliable, and hardware acceleration might be selected even if it is actually not available on the development PC. This causes the emulator to crash. If the emulator crashes, you are asked whether you want to try software rendering, instead. To specify the OpenGL mode, select Tools > Options... > Linux Devices > Maemo Qemu Settings. Emulating Device KeysThe following table summarizes the keyboard shortcuts that you can use to emulate device keys and functions.
Note: Each press of the accelerometer key turns the acceleration by 50 percent. Closing the EmulatorTo close the emulator, click the X at the top right corner of the device emulator view. The emulator interprets this as a press of the power button and displays the text Shutting down in the emulator window title pane. The emulator closes shortly after this. You can also select the Start MeeGo Emulator button to close the emulator. This is a faster way to close the emulator, because it does not wait for the operating system running on the emulated machine to shut down, but this also means that it is less safe. [Previous: Using External Tools] [Next: Editing MIME Types] © 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia. Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. X
|