Any Qt/Embedded application can be a master application by constructing the QApplication object with the QApplication::GuiServer type, or running the application with the -qws command line option.
This document assumes you have the Linux framebuffer configured correctly and no master process is running. If you do not have a working Linux framebuffer you can use the Qt/Embedded virtual framebuffer.
Change to a Linux console and select an example to run, e.g. examples/widgets. Make sure $QTDIR is set to the directory where you installed Qt/Embedded and add the $QTDIR/lib directory to $LD_LIBRARY_PATH, e.g.:
export QTDIR=$HOME/qt-<i>version</i> export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
Run the application with the -qws option:
cd $QTDIR/examples/widgets ./widgets -qws
You should see the widgets example appear. If your mouse doesn't work correctly you need to specify the type of mouse to use. You can exit the master application at any time using ctrl+alt+backspace.
If you wish to run additional applications you should run them as clients i.e. without the -qws option.
The -display parameter's syntax is:
[gfx driver][:driver specific options][:display number]
for example if you want to use the mach64 driver on fb1 as display 2:
$ ./launcher -display Mach64:/dev/fb1:2
To try this functionality you can do the following:
Only the master process needs to specify the driver/device part explicitly. The clients get the information they need from the master when they connect. So once you have a master server running using a particular driver, you can just use "client -display :n" to use display n.
See Qt/Embedded Pointer Handling for more information.
|Copyright © 2005 Trolltech||Trademarks|
Qt version 2.3.10