Results 1 to 3 of 3

Thread: Changing the background of QTabWidget

  1. #1
    Join Date
    Sep 2008
    Posts
    15

    Default Changing the background of QTabWidget

    I'm using the Cleanlooks style with Qt 4.4.0

    I really like the way the QTabWidget is styled by default EXCEPT for the background color.

    If I change just the background color with a style sheet, I lose the default styling of the window. And I can't seem to re-create the default style of QTabWidget using all of the stylesheet properties.

    Does anyone know how I can change the background color of QTabWidget without disturbing the underlying default style ? Or if not, does anyone know to recreate the default cleanlooks QTabWidget using stylesheet properties?

    I've looked at this page and still haven't been able to reconstruct the default style:
    http://doc.trolltech.com/4.4/stylesh...et-and-qtabbar

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Changing the background of QTabWidget

    Take a look at the style proxy example in our wiki.

  3. #3
    Join Date
    Sep 2008
    Posts
    15

    Default Re: Changing the background of QTabWidget

    Quote Originally Posted by wysota View Post
    Take a look at the style proxy example in our wiki.
    Thanks for your response wysota. I'll have to show this to our developers. Unfortunately, it's a little beyond me as I'm just doing some of the ui design with Qt designer.

Similar Threads

  1. Changing names of QTabWidget tabs
    By RThaden in forum Qt Programming
    Replies: 7
    Last Post: 29th January 2019, 22:25
  2. QLCDNumber with transparent background?
    By PolyVox in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2008, 06:34
  3. prob with changing QLineEdit background color
    By Ahmad in forum Qt Programming
    Replies: 2
    Last Post: 30th April 2007, 13:44
  4. Dynamically changing QLabel background colour
    By T4ng10r in forum Qt Programming
    Replies: 19
    Last Post: 19th April 2007, 13:47
  5. changing the size of the tab width: QTabWidget
    By nikita in forum Qt Programming
    Replies: 2
    Last Post: 29th August 2006, 09:31

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.