Configuring The Qt Webkit Demo - GARZ&FRICKE GUF-Yocto-34.0-r5756-0-VINCELL User Manual

Embedded computer systems
Table of Contents

Advertisement

GUF-Yocto-34.0-r5756-0
root@vincell:~# update-rc.d -f qt4-guf-demo remove
After system reboot your application will start automatically.
7.6 Configuring the Qt Webkit demo
The Linux BSP for VINCELL contains a small Qt Webkit demo application, which simply displays a website over
the whole screen. You can start this demo using its start/stop script in /etc/init.d:
root@vincell:~# /etc/init.d/qt4-guf-webdemo start
Without any modifications, the demo displays the local HTML page /home/guf/site/index.htm, as configured in
the script itself:
#!/bin/sh
case "$1" in
start)
start-stop-daemon -m -p /var/run/qt4-guf-webdemo.pid -b -a \
!
/usr/bin/qt4-guf-webdemo -S -- --no-scrollbars file:///usr/share/website/
index.htm
,
;;
stop)
start-stop-daemon -p /var/run/qt4-guf-webdemo.pid -K
;;
* )
echo "Usage: /etc/init.d/qt4-guf-webdemo {start|stop}" >&2
exit 1
;;
esac
For displaying your own HTML page, either load your page into the local default path (and overwrite the file
index.html), or change the path in line 6 of the script, e.g. using nano:
root@vincell:~# nano /etc/init.d/qt4-guf-webdemo
Per default, scrollbars are disabled in the Webkit browser. If you want to enable scrollbars, remove the
parameter preceeding the webpage path.
scrollbars
For having the webdemo automatically started on system startup, use the autostart mechanism described in the
I
precedent chapter
[
7.5 Autostart mechanism for user
44
VINCELL
User Manual
¡
¡
applications].
--no-

Advertisement

Table of Contents
loading

Table of Contents