Results 1 to 9 of 9

Thread: dark gray widgets/background

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default dark gray widgets/background

    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.



    Thanks
    momesana

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dark gray widgets/background

    Could you verify that a form created in Designer looks the same when preview regardless of the style used?

  3. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: dark gray widgets/background

    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:


    cleanlook-style:


    thanks

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dark gray widgets/background

    Quote Originally Posted by momesana View Post
    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?

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: dark gray widgets/background

    Hi,
    Quote Originally Posted by wysota View Post
    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

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dark gray widgets/background

    I have no idea what might be causing this...

  7. #7
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: dark gray widgets/background

    Thank you nonetheless

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dark gray widgets/background

    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.

  9. #9
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: dark gray widgets/background

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.