QT doc says:
void QApplication::setDesktopSettingsAware ( bool on ) [static]
Sets whether Qt should use standard system colors, fonts, etc. for inclusion. This is true by default. This function must be called before the QApplication object is created, for example:
int main(int argc, char *argv[]) { QApplication::setDesktopSettingsAware(false); QApplication app(argc, argv); ... return app.exec(); }
Therefore, it should work out of the box. But I noticed that when I run my application in QtSDK, the system color scheme is "not found", I mean that my QApplication seems not configured. I deployed some of them in a nice ubuntu installation, and I get a rigorous theme. I don't know what's under the hood, but of course, something about the contents of $QTDIR ...
source share