Home · All Classes · Annotated · Functions

Tutorial: Dual Screen Display

Qtopia provides the QPhoneStatus class to enable easy access to phone status information.

Example Dual Screen Application

There is an example of a simple status display for a dual screen phone in src/tools/dualdisplaybasic. It illustrates the use of the phone status library and provides a small display, similar to a monochrome LCD display to display the state of the phone.

There are two options for display:

  1. using one Qtopia Core display -

    the status display will appear as a floating display in the Qtopia display. This is the common case for a LCD display which does not need the complete Qtopia Core graphics engine to drive it. To view in this mode, simply run the application.

  2. using a separate display -

    the status display appears in a separate framebuffer. This case is desirable on a larger, full color secondary display. To view the example in this mode create a separate framebuffer and start the application in this framebuffer.

    For example:

        qvfb -width 83 -height 46 -qwsdisplay :2
        ./dualdisplaybasic -qws -display :2

    Qtopia Core 4.2 will allow multiple displays to be controlled by a single server process. This will allow a greater degree of integration with the main display and applications with lower overhead.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7