Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6760491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:04:13+00:00 2026-05-26T14:04:13+00:00

I compiled and installed Qt for Embedded Linux and made sure to use -qt-gfx-vnc

  • 0

I compiled and installed Qt for Embedded Linux and made sure to use -qt-gfx-vnc in the ./configure line.

I start my application with the following code.

int argc = 1;
char *argv[] = { "appname", "-display", "VNC:0" };
QApplication app(argc, argv, QApplication::GuiServer);

Without the "-display", "VNC:0" options the application works using the display of the embedded device but with these options a QVNCServer is created on port 5900 and nothing goes to the display any more. Trying to connect using Ubuntu’s Remove Desktop Viewer does not work. It gives just a black screen and no error message.

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.

Is it possible to have have a VNC Server and the standard qws stuff running at the same time using Qt or do I have to find another solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:04:14+00:00Added an answer on May 26, 2026 at 2:04 pm

    The "QVNCServer created on port 5900" indicates your Qt libraries were compiled to include the Qt VNC server. The QVNCServer is not a full VNC server, but is a Qt display driver where the output is made available as a VNC Server on the network interface. The “VNC server” is not a separate process, and is simpler than a full VNC server in that it can only handle 1 VNC client at a time and it only supports VNC clients that connect with a depth of 32bpp. There is a bug in the Qt version I am using (4.2.2) that causes the QVNCServer to appear to hang if a VNC client attempts to connect with depth=8 (which is a default for many portable device VNC clients). This may be your problem connecting to the QVNC server. Make sure your VNC client is configured as 32bit/24bit/full-color/high-color. I patched my QtGui library source code so it would disconnect immediately if the VNC client doesn’t have a depth=32.

    Below are the parameters to launch the Qt application from the command line, but the same strings work when launched by another program as you show in your example.

    To launch the application only on the VNC display:

      appname -qws -display "VNC::"
      appname -qws -display "VNC::size=640x480:depth=32:0"
    

    To launch the application to display the same output simultaneously on both the local Linux framebuffer (/dev/fb0) (in my case the local display driver is “sm501”) and a remote VNC client use the following:

      appname -qws -display "Multi: sm501: VNC::"
    

    (I had to use 2 colons with VNC though it was not obvious from the documentation.)

    The easiest way to display different content on the local display and the VNC client is to launch separate Linux processes, each specifying a different display. You can support multiple VNC clients by launching applications with different VNC port numbers:

      appname1 -qws                    --renders to the local display
      appname2 -qws -display VNC::0   --renders to VNC port 5900
      appname3 -qws -display VNC::1   --renders to VNC port 5901
      appname4 -qws -display VNC::2   --renders to VNC port 5902
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed the wxWidgets source code, compiled it and am linking the libraries thus
I've manually compiled and installed PHP 5.3.8 on my Linux box but php-config gives
I am getting following error while executing compiled jar file. I have re installed
I successfully compiled and installed s3fs (http://code.google.com/p/s3fs/) on my Fedora 14 machine. I included
I have downloaded, compiled and installed so far: apr-1.3.9 apr-util-1.3.9 sqlite-3.6.23 zlib-1.2.4 libtool-2.2.6b Now
Can iPhone applications compiled against 2.1 be successfully installed via iTunes on a 2.0
I have installed MAMP and the PHP it came with wasn't compiled with ncurses
I have recently installed .net 3.5 SP1. When I deployed a compiled web site
I am trying to install an application onto my device..I have compiled the application
I have compiled and build my application in Netbeans which includes Java DB. Now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.