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. Changing the size of tabs in a QTabBar via QStyle

Changing the size of tabs in a QTabBar via QStyle

Scheduled Pinned Locked Moved General and Desktop
qstyleqtabbar
1 Posts 1 Posters 692 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
    MattBas
    wrote on last edited by MattBas
    #1

    I'm trying to style QTabBar, drawing extra stuff in the space for the tab label.
    That isn't too hard in QStyle::drawControl but it uses up some space needed by the text of the label.
    I'd like to know if there's something that a style can do to increase the size of the whole tab.
    I tried overriding sizeFromContents for CT_TabBarTab and subElementRect for SE_TabBarTabText but neither does the trick.

    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