![]() ![]() |
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-version export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATHRun the application with the -qws option:
cd $QTDIR/examples/widgets ./widgets -qwsYou 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.
At the time of writing Qt/Embedded supports MouseMan (default), Microsoft and IntelliMouse. To specify the mouse to use set the $QWS_MOUSE_PROTO environment variable, e.g.:
export QWS_MOUSE_PROTO=IntelliMouseIf you wish to run additional applications you should run them as clients i.e. without the -qws option.
Copyright © 2000 Trolltech | Trademarks | Qt version 2.2.0-beta2
|