PDA

View Full Version : dark gray widgets/background



momesana
14th June 2007, 20:42
Hi,
I have a little question regarding Qt4 apps in general. I have installed Qt4 on a friends gentoo linux box that is very similiar to my own setup. The Problem is that qt4 apps on his box are all in dark gray allthough simple qt3 apps are colored the normal way. I,ve been looking for an application like qtconfig which belongs to the qt3 package but there is nothing of the like available for qt4.

Maybe it has something to do with the default color palettes, but why should it be that way. Its a fresh Qt4-installation and Qt3 doesn't have the issue. I,ve written a very small widget example to highlight the problem. I also tried this with different styles but it didn't change this behaviour.

http://www.informatik.uni-bremen.de/~momesana/gray.jpg

Thanks
momesana

wysota
14th June 2007, 21:06
Could you verify that a form created in Designer looks the same when preview regardless of the style used?

momesana
15th June 2007, 14:34
Hi and thanks for replying.
Sorry that it took me so long to answer. I had to get the feedback back from the guy with the problem and he wasn't available until now. The problem seems to be only restricted to the plastique style _in_ designer, though starting the app from the commandline with other styles doesn't change anything.


plastique:
http://www.informatik.uni-bremen.de/%7Emomesana/gray1.jpg (http://www.informatik.uni-bremen.de/%7Emomesana/gray1.jpg)

cleanlook-style:
http://www.informatik.uni-bremen.de/%7Emomesana/not_gray.jpg (http://www.informatik.uni-bremen.de/%7Emomesana/not_gray.jpg)

thanks

wysota
15th June 2007, 15:19
The problem seems to be only restricted to the plastique style _in_ designer,
Hmm... that shouldn't happen :)


though starting the app from the commandline with other styles doesn't change anything.
So you mean that passing -style Cleanlooks while running the application does change the style of the application but it still has dark grey background?

Does Designer itself have a dark background as well?
Is the Qt installation part of some Linux distro or was it compiled manually? Maybe the Plastique style was modified by the package maintainer?

momesana
16th June 2007, 13:41
Hi,

Hmm... that shouldn't happen :)


So you mean that passing -style Cleanlooks while running the application does change the style of the application but it still has dark grey background?

Does Designer itself have a dark background as well?
Is the Qt installation part of some Linux distro or was it compiled manually? Maybe the Plastique style was modified by the package maintainer?

Yep. Exactly. Designer has a dark background. We have both a distro and a selfcompiled version (4.3.0 and 4.2.2 respectively) installed.

The distro doesn't change the themes since on my Gentoo box and other Gentoo linux boxes I've set up, its the standard theme. The selfcompiled version suffers from the same issue (I was told, with the selfcompiled version even the buttons are gray, which is not the case with the distro package but this may have to do with the different versions of Qt). This applies also to the Cleanlooks style.

Thanks :)

wysota
16th June 2007, 21:38
I have no idea what might be causing this...

momesana
16th June 2007, 22:17
Thank you nonetheless :)

wysota
17th June 2007, 07:17
You could try compiling statically and moving the application to another machine to see if the background problem is persistent. But this is a long shot and won't prove anything.

momesana
17th June 2007, 09:39
The problem was solved.
This guy had copied over his old config files from debian when he had moved to gentoo. In one of those files ( Xresources) he had defined the following:

*background: Gray
*foreground: Black
*borderColor: Black

Removing the entries fixed it. Thank you very much for your time and assistance.