[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [PATCH] Transparency support and bugfixes
From:       Roberto Alsina <ralsina () unl ! edu ! ar>
Date:       1999-02-22 17:57:29
[Download RAW message or body]

On Mon, 22 Feb 1999, Geert Jansen wrote:

> Timothy,
> 
> > I may be misunderstanding here, because I have only read part of the
> > conversation, but are we talking about loading the desktop background from
> > a file?  What is wrong with real transparency?  It seems that we should be
> > able to tell the background to redraw a certain segment of itself, and if
> > I am not mistaken QWidget already has support for transparency.
> > 
> > Hint. Hint. I would love to see transparency and/or background selection
> > in kvt/konsole.
> 
> Yes you are correct. I was talking about reading the desktop background
> from a file.
> I don't think Qt (1.x) supports transparent windows. A quick grep trough
> the html documentation:
> 
> /usr/local/qt/$ grep transparent *.html
> t14.html:widget. Since widgets cannot be transparent, we have to
> 
> Are you taking about Qt 2.0? I must admit I'm no Qt expert, though. Does
> anyone know if real transparency is, in principle, possible ? And how about
> effects? Would that be possible?

Qt 1.42:

void QWidget::setMask ( QBitmap bitmap )


Causes only the pixels of the widget for which bitmap has a corresponding 
1 bit to be visible. If the region includes pixels outside the rect() of 
the widget, window system controls in that area may or may not be 
visible, depending on the platform. 


Note that this effect can be slow if the region is particularly complex. 


See also: setMask(const, QRegion&) and clearMask(). 


 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina@unl.edu.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Centro de Telematica
  _..`-'_..-_/ /-'_.'           Universidad Nacional del Litoral
(l)-'' ((i).' ((!.'             Santa Fe - Argentina
                                KDE Developer (MFCH)
Life isn't short. It's just that death is longer.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic