Results 1 to 4 of 4

Thread: How could i customize my QtTabWidget?

  1. #1
    Join Date
    May 2007
    Location
    Brazil
    Posts
    9
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How could i customize my QtTabWidget?

    Hello all!



    Does anyone know how could i paint the tab 2 like tab 1!?

    thanks a lot.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How could i customize my QtTabWidget?

    Yes, click on it .

    Seriously, you should create a style in which you modify only the look of inactive tabs.
    There isn't much to be modified, as you need to make them look as the active one.

    Regards

  3. The following user says thank you to marcel for this useful post:

    Rodrigo (29th May 2007)

  4. #3
    Join Date
    May 2007
    Location
    Brazil
    Posts
    9
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How could i customize my QtTabWidget?

    Quote Originally Posted by marcel View Post
    Yes, click on it .

    Seriously, you should create a style in which you modify only the look of inactive tabs.
    There isn't much to be modified, as you need to make them look as the active one.

    Regards
    Marcel, where may i find a good tutorial to do this!? i'm looking for something at throlltech website, but there isn´t a good explanation there.

    thanks a lot anyway!

  5. #4
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How could i customize my QtTabWidget?

    Take a look at the Styles example that comes with Qt.
    Qt is in the Widgets section.
    I think it is exactly what you need.

    Regards

  6. The following user says thank you to marcel for this useful post:

    Rodrigo (29th May 2007)

Similar Threads

  1. customize the Icon QMessageBox
    By QiT in forum Newbie
    Replies: 1
    Last Post: 26th August 2006, 10:40
  2. How To Customize QText Browser
    By awalesminfo in forum Newbie
    Replies: 1
    Last Post: 21st March 2006, 12:04
  3. Customize QTabBar or QTabWidget
    By gtthang in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 08:39

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.