Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. set QTabBar stylesheet as { qproperty-drawBase: 0; } not work sometime
Qt 6.12 LTS is out! See what's new in the release blog

set QTabBar stylesheet as { qproperty-drawBase: 0; } not work sometime

Scheduled Pinned Locked Moved General and Desktop
stylesheetstyleqtabbarqdockwidgetdrawbase
2 Posts 2 Posters 2.6k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I set QTabBar style as follow:
    QTabBar { qproperty-drawBase: 0; }
    However, it DOESNOT work sometime after I drag the QDockWidget several times.
    Alt QTabBar-drawBase
    Is it a bug? Or did I miss something?
    I also posted it at stackoverflow. But nobody answered.

    Hr0n0sH 1 Reply Last reply
    0
    • ? A Former User

      I set QTabBar style as follow:
      QTabBar { qproperty-drawBase: 0; }
      However, it DOESNOT work sometime after I drag the QDockWidget several times.
      Alt QTabBar-drawBase
      Is it a bug? Or did I miss something?
      I also posted it at stackoverflow. But nobody answered.

      Hr0n0sH Offline
      Hr0n0sH Offline
      Hr0n0s
      wrote on last edited by Hr0n0s
      #2

      @shengfa.zhang
      try to call on tabBar().adjustSize() each time, when drugging is over...
      I had the same problem...

      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
      • Unsolved