[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Some more info about problems with KToolBar with other widgets in them
From: Henrik Johnson <hpj () globecom ! se>
Date: 2001-06-14 22:15:20
[Download RAW message or body]
I've been doing some more investigations about adding QToolButtons
and/or QLabels. The problem is that using gradient styles (Like
megagradient/highcolor etc) the QToolButton and Labels don't have their
background rendered correctly. I've emailed this list about this before,
however I've done some more investigating and just thought I'd share it.
I can't really make heads or tails of it, the styles are really hard to
debug. Anyway, here is what I've come up with.
If I use a QToolBar the child widgets have the correct background,
however the toolbar itself doesn't have the correct background.
If I use a KToolBar the child widgets have a solid background, but the
toolbar obviously has the correct background. However, separators added
using the addSeparator call have the wrong background and worse than
that, their background isn't solid but garbage. Like it's an unitialised
pixmap or something.
The weird thing here is that the widgets behave correctly when a
QToolBar is their parent (If the QToolBar would have been rendered with
a gradient as well). I haven't really been able to pinpoint how a widget
gets it's background color, this is my first stab at trying to
understand styles and I must say I have met limited success at best :).
/Mauritz
GlobeCom AB
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic