Results 1 to 3 of 3

Thread: Different Color Scheme between XP and Windows 7

  1. #1
    Join Date
    Nov 2011
    Posts
    30
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Different Color Scheme between XP and Windows 7

    When run my QT application on Windows 7 I get a white background and default color of my dialogs and everything. When I run the same binary on XP it goes to grey. Because of my images, the grey is messsing me up. How can I force XP to use the White color scheme?

    Ken

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,321
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Different Color Scheme between XP and Windows 7

    You could explicitly set a style for your app using QApplication::setStyle() which would make your app look roughly the same on each platform, but would probably make it look "different" from a native app. I believe that the default drawing of primitives (buttons, backgrounds, highlights, etc.) is done using the platform's native API, so any differences between XP and Win 7 are the result of native implementations on each.

    You could also play around with the palette for the app (or for individual widgets if an app-wide change in undesirable), changing the QPalette::Window color, for example.

  3. #3
    Join Date
    Nov 2011
    Posts
    30
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: Different Color Scheme between XP and Windows 7

    The problem is I have buttons with Icons and picures on them and I also build some myself, and I did all of the work on Win 7. Now, the XP looks like junk.

Similar Threads

  1. Scheme editor
    By zzz9 in forum General Discussion
    Replies: 0
    Last Post: 7th June 2011, 08:10
  2. Text editor color scheme
    By kosasker in forum Qt Tools
    Replies: 4
    Last Post: 14th February 2011, 21:36
  3. QUrl and ftp scheme parsing
    By mcarter in forum Qt Programming
    Replies: 2
    Last Post: 14th April 2010, 17:43
  4. Replies: 1
    Last Post: 13th November 2009, 18:40
  5. qtcreator text editor color scheme problem
    By elflord in forum Qt Tools
    Replies: 1
    Last Post: 5th March 2009, 17:42

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.