qt-interest@trolltech.com
[Top] [All Lists]

Re: from 4.0.1 to 4.1.4

Subject: Re: from 4.0.1 to 4.1.4
From: Andreas Aardal Hanssen
Date: Wed, 05 Jul 2006 13:44:52 +0200
Manish Motwani wrote:
> Does anyone know a workaround for this? If I don't call this function,
> all my widgets (which were working fine before on 4.0.1), become
> transparent (or atleast the background part of it) when built under
> 4.1.x. Is there a way that I can call this function for the entire
> application and have all my widgets inherit this property?

If you want to, you can climb the tree of widgets using
QObject::findChildren() and QObject::isWidgetType() for all your windows
and set this property true. Otherwise, you can paint the widgets'
backgrounds from inside paintEvent() where necessary. This
behavioral change in 4.1 affects widgets that rely on their
background being painted opaque by default.

Andreas

-- 
Andreas Aardal Hanssen, Developer, Trolltech AS
Sandakerveien 116 (PO Box 4332 Nydalen) NO-0402 Oslo Norway

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>