|
|
What method would I use to set the font on the tab itself? That's really the root problem.
TIA
On 5/8/06, Andreas Pakulat <
apaku@xxxxxx> wrote:On 08.05.06 18:39:05, InsaneToucan wrote: > I want to make my active tab's label to be bold, and unfocused tab's text
> label to be unbolded. Right now, since setTabText only takes QString I don't > see a way to do this by formatting the text (like I could with QLabel). > > Setting the font on the QTabWidget sets it across all tabs (focused and
> unfocused). Any thoughts/ideas appreciated.
Well, using tabBar(), you can get the tab-bar itself and on that one you can fetch each individual tab using tab(). That way you can set the font on the tab.
Andreas
-- You have many friends and very few living enemies.
-- To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|