[Qt-interest] Setting the background color of a tab

Jake Colman colman at ppllc.com
Wed Aug 3 22:04:16 CEST 2011



I need to set it on the fly at runtime as things change.  And I need
different tabs to have different background colors.  Can all that be
done via CSS?


>>>>> "JF" == Jesus Fernandez <jsfdez at gmail.com> writes:

   JF> You can set with CSS the background-color of QTabWiget.

   JF> On Wed, Aug 3, 2011 at 21:52, Jake Colman <colman at ppllc.com> wrote:

   >> 
   >> Is it possible to set the background color of a tab?  Given a
   >> QTabBar one can set the text color.  But can one set the
   >> background?
   >> 
   >> --
   >> Jake Colman | Director, Software Development
   >> Principia Partners LLC
   >> 101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
   >> t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
   >> e: colman at ppllc.com | w: www.principiapartners.com
   >> Credit technology innovation awards winner 2008, 2009 & 2010
   >> 
   >> _______________________________________________
   >> Qt-interest mailing list
   >> Qt-interest at qt.nokia.com
   >> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
   >> 
   JF> _______________________________________________
   JF> Qt-interest mailing list
   JF> Qt-interest at qt.nokia.com
   JF> http://lists.qt.nokia.com/mailman/listinfo/qt-interest

-- 
Jake Colman | Director, Software Development
Principia Partners LLC
101 West Elm Street | Conshohocken | PA 19428 | +1 (610) 755 9770
t: +1 (610) 755 9786 | c: +1 (610) 348 2788 | f: +1 (201) 221 8929
e: colman at ppllc.com | w: www.principiapartners.com
Credit technology innovation awards winner 2008, 2009 & 2010




More information about the Qt-interest-old mailing list