Results 1 to 14 of 14

Thread: QTabBar with optional button to the right of every tab

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default QTabBar with optional button to the right of every tab

    Hi, I want to have an extra button on a QTabBar, like the closeButton in Firefox. My current solution is subclassing from QTabWidget and doing the drawing myself. It works but I'm losing the boons of CSS-Styling . This way I need to write a new class every time I want to implement a different look. Is there a way to achieve the same effect without losing the Styleability of the widget or is it possible to access the defined stylesheet values without doing all the parsing logic so I can try to take them into consideration when painting the tabbar? ... like getter functions for the properties and also the properties for the subcontrols?

    Thanx in advance
    Last edited by momesana; 6th October 2007 at 21:46.

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.