| Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date | |
| All threads index page 1 | |
On Thursday 24 November 2005 22:17, Dimitri wrote:
> Hi,
>
> > QLabel* label = new QLabel;
> > label->setText("mops");
> > QPalette p(label->palette());
> > p.setColor(label->backgroundRole(), track->ccolor());
> > label->setPalette(p);
>
> This happens with the plastique style only, not with the windows, cde or
> motif styles. Try the '-style windows' option to check this.
>
> I don't know whether this is by design, it rather looks like a bug to
> me, I would suggest sending a bug report to Trolltech:
> http://www.trolltech.com/forms/feedbackform.html
>
> --
> Dimitri
>
> To unsubscribe - send "unsubscribe" in the subject to
> qt4-preview-feedback-request@xxxxxxxxxxxxx
Dimitri, it's not a bug. In Qt 4.1, child widgets always inherit the contents
of their parent.
There's an autoFillBackground property that they can set:
http://doc.trolltech.com/4.1/qwidget.html#autoFillBackground-prop
Matthias
On Tuesday 29 November 2005 17:39, Matthias Ettrich wrote: [...] > > Dimitri, it's not a bug. In Qt 4.1, child widgets always inherit the > contents of their parent. > > There's an autoFillBackground property that they can set: > > http://doc.trolltech.com/4.1/qwidget.html#autoFillBackground-prop > Oops, sorry for this piece of Trolltech-internal communication that accidently went out to a public mailing list. Matthias