[Qt-interest] QTabBar background colors

Benjamin ikipou at gmail.com
Thu Dec 11 21:34:36 CET 2008


Hi,

Have you tried to change the color of the Palette? (QWidget::setPalette())?

Benjamin

2008/12/11 Diana Coppenbarger <dcop at lle.rochester.edu>

> I am trying to figure out how the change the background colors on the
> tabs for a QTabWidget.  I have created my own class, inheriting from
> QTabWidget to be able to get access to the QTabBar.  I can change the
> text color by using tabBar()->setTabTextColor(QColor(Qt::red));, but I
> really want to be able to change the *background* color of just the
> tab.  I am using Qt 4.3.  Any thoughts?
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081211/0e761451/attachment.html 


More information about the Qt-interest-old mailing list