Results 1 to 2 of 2

Thread: Title Bar Color

  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Title Bar Color

    Hi,

    I am working with application that runs on Windows,Linux and Mac.
    It uses QMainWindow,QWidget,QDialog in UI files.

    I want to change the color of Title bar to Gray irrespective of OS setting. I understand that this is based on OS for example on Windows its based on Windows Manager settings.

    I am using Qt open source Edition 4.1.2.

    Any help/guideline might save me my job

    Thanks in advance

  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: Title Bar Color

    It's not possible to do it directly. Qt only handles the "internals" of the window and can give hints to the underlying window manager, but it can't influence its colours.

Similar Threads

  1. QGroupBox title truncated on both sides
    By Gopala Krishna in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2006, 15:02
  2. How to get system color in QT4 as in C#.NET
    By mitesh in forum Qt Programming
    Replies: 1
    Last Post: 19th September 2006, 07:03
  3. QLabel background color
    By munna in forum Newbie
    Replies: 3
    Last Post: 1st May 2006, 15:36
  4. Replies: 1
    Last Post: 17th March 2006, 08:19

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.