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. Why can't set the tabbar's border-bottom's color to white?
Forum Updated to NodeBB v4.3 + New Features

Why can't set the tabbar's border-bottom's color to white?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 747 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.
  • LimerL Offline
    LimerL Offline
    Limer
    wrote on last edited by
    #1

    0_1542716047899_捕获.PNG

    I just want to the style just like Vmware Workstation.

    So I used qss,

    QTabBar
    {
        border-bottom: none;
    }
    

    But it didn't work.

    So, why,,, can someone give me any advice?

    raven-worxR J.HilkJ 2 Replies Last reply
    0
    • LimerL Limer

      0_1542716047899_捕获.PNG

      I just want to the style just like Vmware Workstation.

      So I used qss,

      QTabBar
      {
          border-bottom: none;
      }
      

      But it didn't work.

      So, why,,, can someone give me any advice?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Limer 2
      the border probably comes from the content container widget or the widget inside the tab?
      Don't know if it works but try:

      QTabWidget QWidget#qt_tabwidget_stackedwidget {
          border: 0;
      }
      

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • LimerL Limer

        0_1542716047899_捕获.PNG

        I just want to the style just like Vmware Workstation.

        So I used qss,

        QTabBar
        {
            border-bottom: none;
        }
        

        But it didn't work.

        So, why,,, can someone give me any advice?

        J.HilkJ Offline
        J.HilkJ Offline
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        @Limer I haven‘t much experience with QTabWidget, but I know of this Qt-Blockpost http://blog.qt.io/blog/2007/06/22/styling-the-tab-widget/

        From that I would guess you need the Tab sub controll ?

        QTabBar::tab { border-bottom:none;}
        

        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        LimerL 1 Reply Last reply
        2
        • J.HilkJ J.Hilk

          @Limer I haven‘t much experience with QTabWidget, but I know of this Qt-Blockpost http://blog.qt.io/blog/2007/06/22/styling-the-tab-widget/

          From that I would guess you need the Tab sub controll ?

          QTabBar::tab { border-bottom:none;}
          
          LimerL Offline
          LimerL Offline
          Limer
          wrote on last edited by
          #4

          @J.Hilk @raven-worx

          QTabWidget::pane
          {
              background-color: white;
              border-top: none;
          }
          

          I get it! The border is the pane's top-boerder, just use the above code will be ok.

          1 Reply Last reply
          3

          • Login

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