[Qt4-preview-feedback] Ability to read the border and padding properties of styled widgets
Olivier Goffart
ogoffart at trolltech.com
Sun Mar 1 18:36:48 CET 2009
On Friday 27 February 2009 14:48:08 Craig Scott wrote:
> Hi. It would seem that there is still no way to programmatically obtain
> the padding and border widths that are in effect on a widget. You can
> specify them with a stylesheet but you cannot read those values in code,
> at least not as far as I can tell from the documentation. Has this
> situation been addressed for 4.5 (or have I just missed it)? I seem to
> recall this deficiency being mentioned many months back but I can't
> track down whether it was through Trolltech support or just a forum
> posting. Apologies if I'm just not looking in the right places. ;)
Hi,
There is no public API to access stylesheet properties.
(And this is not in the roadmap)
If your widget inherit from QFrame, you may be able access the border by the
frameWidth property.
More information about the Qt4-feedback
mailing list