Results 1 to 3 of 3

Thread: Multicolored Tabs in QMdiArea?

  1. #1
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Multicolored Tabs in QMdiArea?

    Hi,

    My MDI-App with QMdiArea is designed in TabbedView. I need to have each tab-label in a different tab-label-background color (First blue, secound red...)
    It should looks like: Sample Screenshot

    How can i do that?
    I hope anybody can kick me in the right direction.

    Thanks in advance..
    Ralf

  2. #2
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Multicolored Tabs in QMdiArea?

    i would suggest u to use a stackedwidget and then create your custom widget of different color buttons.

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

    reb_elba (17th September 2010)

  4. #3
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Wink Re: Multicolored Tabs in QMdiArea?

    Quote Originally Posted by MrDeath View Post
    i would suggest u to use a stackedwidget and then create your custom widget of different color buttons.
    Nice suggestion, thanks.
    I hoped, that I have overlooked something in QMdiArea. The app is finished, only the tab-colors are missing.
    guess i play a little bit with stackedwidget...

Similar Threads

  1. QMdiArea, context menu for tabs
    By rtxleh in forum Qt Programming
    Replies: 2
    Last Post: 1st September 2011, 11:35
  2. QwtPlot3d and QMdiArea
    By YaK in forum Qwt
    Replies: 0
    Last Post: 17th March 2010, 05:53
  3. QMdiArea
    By Programm3r in forum Qt Programming
    Replies: 0
    Last Post: 4th May 2009, 15:25
  4. layout in a QMdiArea
    By babu198649 in forum Newbie
    Replies: 2
    Last Post: 10th July 2008, 09:11
  5. QMdiArea with designer
    By maximAL in forum Qt Tools
    Replies: 3
    Last Post: 7th September 2007, 13:58

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.