<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /tmp/qt-4.2.1-harald-1161357942206/qt-x11-opensource-src-4.2.1/doc/src/emb-vnc.qdoc --> <head> <title>Qt 4.2: The VNC Protocol</title> <link rel="contents" href="qtopiacore.html" /> <link href="classic.css" rel="stylesheet" type="text/css" /> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td> <td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="modules.html"><font color="#004faf">Modules</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td> <td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><p> [<a href="qtopiacore.html">Contents</a>] </p> <h1 align="center">The VNC Protocol<br /><small></small></h1> <p>VNC (Virtual Network Computing) software makes it possible to view and interact with one computer (the "server") from any other computer or mobile device (the "viewer") anywhere on a network.</p> <p>To run a Qtopia Core application using the VNC protocol, Qtopia Core must be configured using the <tt>-qt-gfx-vnc</tt> option:</p> <pre> cd path/to/Qtopia/Core ./configure -qt-gfx-vnc make</pre> <p>Then start a Qtopia Core master application (i.e. construct a <a href="qapplication.html">QApplication</a> object with the <a href="qapplication.html#Type-enum">QApplication::GuiServer</a> flag or use the -qws command line parameter. See the <a href="qtopiacore-running.html">Running Applications</a> documentation for details). In addition, use the <tt>-display</tt> option to specify the VNC server's driver. For example:</p> <pre> cd path/to/Qtopia/Core/examples/widgets/analogclock ./analogclock -qws -display VNC:0</pre> <p>To interact with the application over the network, run a VNC client pointing at the machine that is running the Qtopia Core master application. VNC clients are available for a vast array of display systems: X11, Windows, Amiga, DOS, VMS, and dozens of others. For example, using the X11 VNC client to view the application from the same machine:</p> <pre> vncviewer localhost:0</pre> <p>Qtopia Core will create a 640 by 480 pixel display by default. Alternatively, the <a href="qtopiacore-envvars.html#qws-size">QWS_SIZE</a> environment variable can be used to set another size, e.g. <tt>QWS_SIZE=240x320</tt>.</p> <p><table align="center" cellpadding="2" cellspacing="1" border="0"> <tr valign="top" class="odd"><td><b>The Virtual Framebuffer</b><p><a href="qtopiacore-qvfb.html">The Virtual Framebuffer</a> is an alternative technique recommended for development and debugging purposes.</p> <p>The virtual framebuffer emulates a framebuffer using a shared memory region and the <tt>qvfb</tt> tool to display the framebuffer in a window.</p> <p>Its use of shared memory makes the virtual framebuffer much faster and smoother than using the VNC protocol, but it does not operate over a network.</p> </td><td><img src="images/qtopiacore-virtualframebuffer.png" /></td></tr> </table></p> <p> [<a href="qtopiacore.html">Contents</a>] </p> <p /><address><hr /><div align="center"> <table width="100%" cellspacing="0" border="0"><tr class="address"> <td width="30%">Copyright © 2006 <a href="trolltech.html">Trolltech</a></td> <td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td> <td width="30%" align="right"><div align="right">Qt 4.2.1</div></td> </tr></table></div></address></body> </html>