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. Remove shadow from QTabWidget
QtWS25 Last Chance

Remove shadow from QTabWidget

Scheduled Pinned Locked Moved Solved General and Desktop
shadowborderqtabwidget
3 Posts 2 Posters 3.3k 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.
  • gde23G Offline
    gde23G Offline
    gde23
    wrote on last edited by
    #1

    Hello,

    i want to have an borderless qTabWidget
    I have set a stylsehseet with

    border: 0px;
    

    however there is some shadow-ish thing that does not go away (see image)
    alt text
    box-shadow seems not to be supportde by qt.

    any ideas?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      Not sure what that line is
      but the example
      http://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar

      Dont have it so should be possible to get what you want with some fiddle :)

      update:

      seems to be QTabWidget::pane

      QTabWidget::pane { /* The tab widget frame */
          border-bottom: 0px solid #C2C7CB;
      }
      
      
      1 Reply Last reply
      3
      • gde23G Offline
        gde23G Offline
        gde23
        wrote on last edited by
        #3

        @mrjj

        Thx for the hint

        setStyleSheet("QTabWidget::pane {border-bottom: 0px;}");
        

        did the trick

        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