Embedded Linux desktop color
Can anyone help me find out how to change the color of the desktop in the QVFB and target from the default green. Here is the simplest of code to demonstrate:
@int main(int argc, char *argv)
QApplication a(argc, argv);
int val = a.exec();
then run ./app -qws
My qvfb is ran as:
sudo /usr/local/Trolltech/Qt-x11-4.7.4/bin/qvfb -width 240 -height 320 -depth 15
I don't have any experience with Qvfb, but according to the "docs,":http://doc.qt.nokia.com/stable/qvfb.html there is a skin parameter which can be given to the qvfb command line.
Perhaps editing a skin file could help you out.
From the docs:
bq. The qvfb application supports the following command line options:
-skin <name>.skin -- The preferred skin. Note that the skin must be located in Qt's /tools/qvfb/ directory.
Thanks, but skins affect the QVFB application itself, not the application running in QVFB. The skins allow the QVFB app to look like a cell phone, which is not required for my needs. I need to find out how to change the green background color to some other color. The green is also present on the target hardware, so it really is not a QVFB specific thing, its maybe the -qws server background color.
I finally figured it out:
QWSServer::setBackground(QBrush(QColor(0xAD, 0xD8, 0xE6)));
will set the desktop background to lightblue.