Results 1 to 3 of 3

Thread: QTabBar styling

  1. #1
    Join Date
    Mar 2013
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTabBar styling

    Hi folks!
    I'd like to style each page button on QTabBar identified by custom property (or index).
    Is it even possible? The problem is that custom (page) property is associated with pane, not tab bar.
    I'm looking for something like
    Qt Code:
    1. QTabBar::tab[currentIndex=0] { background: yellow; }
    To copy to clipboard, switch view to plain text mode 

    But this doesn't work. What I found in documentation is identifying first, last, selected and hoved.

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Thanks
    29
    Thanked 50 Times in 47 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QTabBar styling

    Use different stylesheet for each tab bar.
    Heavy Metal Rules. For those about to rock, we salute you.
    HIT THANKS IF I HELPED.

  3. #3
    Join Date
    Mar 2013
    Posts
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QTabBar styling

    Thanks for your answer ... but I don't understand how to do it. I have a simple hierarchy QDialog->QTabWidget->[QWidget, QWidget]
    Could you possibly provide me some short example? Thanks

Similar Threads

  1. Replies: 0
    Last Post: 17th November 2011, 12:51
  2. Replies: 1
    Last Post: 22nd September 2011, 02:39
  3. Styling QTabBar?
    By arbi in forum Qt Programming
    Replies: 0
    Last Post: 18th January 2011, 14:46
  4. QTabBar??
    By anupamgee in forum Qt Programming
    Replies: 12
    Last Post: 30th April 2009, 19:13
  5. qscrollbar styling
    By 20khz in forum Qt Programming
    Replies: 0
    Last Post: 5th May 2008, 15:17

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.