title: Getting the Qt VNC Server to work
body: <p>I compiled and installed <em>Qt for Embedded Linux</em> and made sure to use <code>-qt-gfx-vnc</code> in the <code>./configure</code> line.</p>
  
  <p>I start my application with the following code.</p>
  
  <pre><code>int argc = 1;
  char *argv[] = { "appname", "-display", "VNC:0" };
  QApplication app(argc, argv, QApplication::GuiServer);
  </code></pre>
  
  <p>Without the <code>"-display", "VNC:0"</code> options the application works using the display of the embedded device but with these options a <code>QVNCServer</code> is created on port 5900 and nothing goes to the display any more. Trying to connect using Ubuntu's <em>Remove Desktop Viewer</em> does not work. It gives just a black screen and no error message.</p>
  
  <p>For my application I need a VNC Server that is active while the GUI is rendered to the embedded display at the same time. Ideally I would also want to be able to enable/disable the VNC Server from within my application. I also need to be able to do some user authentication.</p>
  
  <p>Is it possible to have have a VNC Server and the standard <code>qws</code> stuff running at the same time using Qt or do I have to find another solution?</p>