[Interest] How to programatically make a tab's text bold?

Vadim Peretokin vperetokin at gmail.com
Wed Apr 4 09:47:35 CEST 2018


On Wed, Apr 4, 2018 at 7:35 AM Hamish Moffatt <hamish at risingsoftware.com>
wrote:

> On 04/04/18 15:10, Vadim Peretokin wrote:
> > How can I programatically make a tab's text bold? I'm looking to
> > notify the user that they need to look at it.
> >
> > Note that this is different from using a stylesheet to set the
> > selected tab bold - I'd like to set any random tab's text bold.
> >
> > Been looking at this for several days, appreciate any advice!
>
> Using widgets? You didn't say what context.
>
> Maybe you can set a dynamic property on the tab when you want it to be
> bold, and attach a special style using properties in the stylesheet.
>
>
> Hamish
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>

Yes, using widgets.

I've tried a dynamic property however as far as I can see, I can only set
the dynamic property on the entire tab bar - not a specific tab. How can I
set it on a specific tab?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180404/69a0371b/attachment.html>


More information about the Interest mailing list