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. Styling issue with tabified QDockWidgets

Styling issue with tabified QDockWidgets

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 1 Posters 614 Views
  • 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.
  • Thuan_FirelightT Offline
    Thuan_FirelightT Offline
    Thuan_Firelight
    wrote on last edited by Thuan_Firelight
    #1

    0_1542251873429_cffea87e-aa04-4aec-b4e8-11f6409722a8-image.png

    I was wondering if anyone know what is the stylesheet element to set for the white line that is going across at the base of the tabs. I have applied here a style sheet using "* { color: #00ffff; background-color: #000000 }" and the white line seems unaffected (i.e. it's neither #00ffff or #000000). I also tried "* { border: 2px solid red }" and it doesn't look like it's a border.

    This created using the standard QMainWindow widget and the addDockWidget() and tabifyDockWidget() function.

    Thuan_FirelightT 1 Reply Last reply
    0
    • Thuan_FirelightT Thuan_Firelight

      0_1542251873429_cffea87e-aa04-4aec-b4e8-11f6409722a8-image.png

      I was wondering if anyone know what is the stylesheet element to set for the white line that is going across at the base of the tabs. I have applied here a style sheet using "* { color: #00ffff; background-color: #000000 }" and the white line seems unaffected (i.e. it's neither #00ffff or #000000). I also tried "* { border: 2px solid red }" and it doesn't look like it's a border.

      This created using the standard QMainWindow widget and the addDockWidget() and tabifyDockWidget() function.

      Thuan_FirelightT Offline
      Thuan_FirelightT Offline
      Thuan_Firelight
      wrote on last edited by
      #2

      I found the cause of the issue. Seems like the QTabBar created by the docking system has drawBase set to true. Is there a way to customize the base drawing without reaching into the QTabBar to set drawBase to false? The tab bar is not exposed via the QMainWindow or the widget docked to it by the looks of things.

      1 Reply Last reply
      1

      • Login

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