Results 1 to 4 of 4

Thread: styling Tabbar of QDockWidgets

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Location
    Berlin, Germany
    Posts
    358
    Thanks
    18
    Thanked 68 Times in 66 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default styling Tabbar of QDockWidgets

    Hi,

    now I want to customize the TabBars when QDockWidgets are tabbed. I can change the tabs, but I can't access the tab-bar and the pane. See the desired result in attached image. I want to add a background color gradient and a border around the pane and I want to move the tabs by 3 px to the right.

    Qt Code:
    1. /* Tab */
    2. QTabWidget::pane /* this does not work with tabbed QDockWidgets! */
    3. {
    4. margin-top:-26Px;
    5. background-color:red;
    6. border:1px solid #959595;
    7. padding-top:2px;
    8. border-radius: 2px;
    9. }
    10.  
    11. QTabWidget::tab-bar /* this does not work with tabbed QDockWidgets! */
    12. {
    13. border:none;
    14. left:3px;
    15. }
    To copy to clipboard, switch view to plain text mode 

    is there any special way to access tabbars/pane of tabbed qdockwidgets?

    thanks!
    Felix
    Attached Images Attached Images

Similar Threads

  1. hide tabbar
    By wirasto in forum Qt Programming
    Replies: 5
    Last Post: 10th June 2014, 08:26
  2. StyleSheet for TabBar
    By sdastagirmca in forum Qt Programming
    Replies: 11
    Last Post: 15th May 2012, 16:45
  3. TabBar empty area
    By wirasto in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2010, 16:56
  4. show Tabbar only if there are more than 1 tabs.
    By momesana in forum Qt Programming
    Replies: 2
    Last Post: 23rd September 2007, 20:07
  5. how to put the tabbar at the left in a tabwidget
    By qtopiahooo in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2006, 06:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.