Results 1 to 2 of 2

Thread: Changing color of only one tab

  1. #1
    Join Date
    Feb 2008
    Posts
    79
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Changing color of only one tab

    Hello,

    I want to change color of tab at specific index. Can I achieve this with setStyleSheet or is there some other way? I want only tab name background colored (not just text background, but whole area that is clickable) not the whole tab area. How can I achieve this?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Changing color of only one tab

    I remember this being asked before.
    By default, this is not possible (if I remember it correctly), even not with stylesheets.

    I guess you can try a subclassed tab widget (with a custom style maybe)

Similar Threads

  1. changing button background color
    By Tomasz in forum Newbie
    Replies: 4
    Last Post: 27th November 2010, 04:09
  2. Replies: 1
    Last Post: 22nd February 2010, 09:38
  3. Replies: 3
    Last Post: 19th November 2009, 14:10
  4. changing color of QTable
    By aj2903 in forum Qt Programming
    Replies: 7
    Last Post: 30th October 2009, 12:52
  5. Dynamically changing QFrame color
    By Doug Broadwell in forum Newbie
    Replies: 6
    Last Post: 16th October 2008, 08:22

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.