[Qt-interest] Get style of a subcontrol

Girish Ramakrishnan girish at forwardbias.in
Thu Jun 11 18:04:20 CEST 2009


Peter Radagast wrote:
> For example I have set following CSS:
>  QTabBar::tab
>  {
>     font-family: "Arial";
>     color: #323232;
>  }
> 
> is it possible to get this font as a QFont in the source code? QTabBar::font() returns another one, and I don't see any way to get access to a subcontrol.
> Thanks in advance.

There is no API to get this information. How do you intend to use the
QFont that is set there?

Girish



More information about the Qt-interest-old mailing list