Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] How To Style Tab Background on Mac OSX
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] How To Style Tab Background on Mac OSX

Scheduled Pinned Locked Moved General and Desktop
qtabbarqtabwidgetqssstylesheet
2 Posts 1 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maximo
    wrote on last edited by maximo
    #1

    Anyone know how, on Mac OSX, I can style the QTabWidget (or sub controls in it) so that I can change the dark grey background color shown in this image, as well as the dark border at the top of it?

    Tab Image

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maximo
      wrote on last edited by
      #2

      The solution is an undocumented trick:

      QTabBar 
      {
      background-color: transparent;
      qproperty-drawBase:0;
      }
      

      This lets you make the dark grey area (called the "tab bar base") as transparent. Or, alternatively, you can style it by changing the background-color value to a color.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved