Results 1 to 2 of 2

Thread: Styling ::tab of a QTabBar element results in style lose.

  1. #1
    Join Date
    Sep 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Exclamation Styling ::tab of a QTabBar element results in style lose.

    In my application, I want to style the selected tab of a QTabBar element. What I style is only its background-color, but every time I change its background-color attribute, all the other styles are immediately lost.
    At first I thought it was an issue only for background-colors, but then trying more I noticed that even by changing the margins of the tabs, all the other styles are lost. The background-color of the other tabs is set to transparent, padding and borders lost too.

    I think that the correct way for QT to behave, should be to leave untouched the attributes that I have not explicitly modified, but for such an obvious behaviour not to be implemented there have to be other reasons or I am missing something.

    Is this an actual “bug” or is there something that I did not consider when trying to styling the tabs?

  2. #2
    Join Date
    Sep 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Styling ::tab of a QTabBar element results in style lose.

    Sorry for bumping but isn’t there anybody that has a clue about this? How come nobody has posted a single comment in all this time...

Similar Threads

  1. Styling QTabBar?
    By arbi in forum Qt Programming
    Replies: 0
    Last Post: 18th January 2011, 14:46
  2. QCompleter causes table to lose focus
    By knack in forum Qt Programming
    Replies: 3
    Last Post: 29th August 2010, 23:22
  3. QTabbar style ::scroller to expand the tab scoll button space.
    By AmolShinde_8 in forum Qt Programming
    Replies: 0
    Last Post: 22nd February 2010, 15:40
  4. i want to lose the focus...
    By jrodway in forum Qt Programming
    Replies: 7
    Last Post: 14th July 2007, 11:04
  5. QCanvas automatically lose its focus.
    By Cutey in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2007, 12:29

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.