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. How to get rid of strange white line under QTabBar while customzing QDockWidget thru stylesheet

How to get rid of strange white line under QTabBar while customzing QDockWidget thru stylesheet

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 580 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.
  • m. selimM Offline
    m. selimM Offline
    m. selim
    wrote on last edited by A Former User
    #1

    I do have a QDockWidget that includes tabified dockwidgets.
    I am customizing the the QMainWindow stylesheet by the following stylesheet:

    QWidget { color:white; background: #757575 }

    QTabWidget { padding: 0px; border: 0px; background-color: #757575; }
    QTabWidget::pane { border: 0px solid #C2C7CB; top: -3px; background: #757575; }
    QTabWidget::tab-bar {
    subcontrol-position: top left;

    subcontrol-origin: margin;
    padding: 0px 0px 0px 0px;
    border: 0px;
    background: transparent;
    }
    

    QTabBar { background-color : #757575; }
    QTabBar::close-button {
    subcontrol-position: right;
    }
    QTabBar::tab {
    color: white;
    background: #757575;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    min-width: 8ex;
    padding: 10px;
    min-width: 100px;
    }

    QTabBar::tab::selected{ border-bottom: 0px solid #757575; background-color: darkgrey; }

    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