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.
  • G Offline
    G Offline
    gde23
    wrote on 12 Dec 2017, 15:13 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 12 Dec 2017, 15:22 last edited by mrjj 12 Dec 2017, 15:25
      #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
      • G Offline
        G Offline
        gde23
        wrote on 12 Dec 2017, 15:28 last edited by
        #3

        @mrjj

        Thx for the hint

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

        did the trick

        1 Reply Last reply
        1

        2/3

        12 Dec 2017, 15:22

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved