[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Setting relative font sizes
From: Stefan Majewsky <majewsky () gmx ! net>
Date: 2009-10-24 20:32:42
Message-ID: 200910242232.47860.majewsky () gmx ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Am Samstag 24 Oktober 2009 22:19:13 schrieb Raphael Kubo da Costa:
> Currently, I have some QLabels with rich text in them, such as "<font
> size=+1>foo</font>". I'm trying to move this kind of font setting to a
> style sheet in the .ui, or even set it via QLabel::setStyleSheet,
> however setting the style sheet to "font-size: larger;" or anything
> that's not a pixel or point value doesn't work, and I don't know if
> it's possible to set the size in a relative way (like the +1 that's
> being used at the moment).
font-size: 120%;
font-size: 1.2em;
Pack one of these in the stylesheet.
Greetings
Stefan
["signature.asc" (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic