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?