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. CSS and QTabWidget tab border
Forum Updated to NodeBB v4.3 + New Features

CSS and QTabWidget tab border

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

    I'm using stylesheets to set a dark theme on my QWidget app.
    I use a prebuilt them (breeze).
    Using QTabWidget I noticed this particular that I would like to modify:

    1d2482ed-8733-4cf1-a6ae-06293ea06e46-image.png

    in standard Qt look it will appear in this way (I prefer this of course):

    3b3ae40a-e707-4474-90e0-8b484599e143-image.png

    What's the attribute to manage this border?

    Best regards,
    Mike

    bye by[t]e{s}... Mike

    Pl45m4P 1 Reply Last reply
    0
    • DragoonD Dragoon

      I'm using stylesheets to set a dark theme on my QWidget app.
      I use a prebuilt them (breeze).
      Using QTabWidget I noticed this particular that I would like to modify:

      1d2482ed-8733-4cf1-a6ae-06293ea06e46-image.png

      in standard Qt look it will appear in this way (I prefer this of course):

      3b3ae40a-e707-4474-90e0-8b484599e143-image.png

      What's the attribute to manage this border?

      Best regards,
      Mike

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @Dragoon said in CSS and QTabWidget tab border:

      What's the attribute to manage this border?

      Looks like border-color or border / border-bottom from QTabBar::tab and QTabBar::tab:selected. Setting them to none or to your background color might work.

      Here's an overview over some configurations
      https://doc.qt.io/qt-6/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      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