[PyKDE] shaped windows and QWidget.setMask

2002-04-04 Thread Jonathan Gardner

Someone posted a while ago about how to do shaped windows in Qt. The
answer is still I don't know but I have found a clue by looking at the
tuXeyes source code.

I think QWidget.setMask is what you are looking for. I was interested in
what it would take to do something with OpenGL and then using a mask,
and this is it apparently. I haven't actually used it yet, but like all
things Qt, I doubt there will be a problem.

Jonathan

PS: I would've replied to keep things in the thread, but it seems that
I've lost the email between several re-installations. =(


___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde



Re: [PyKDE] shaped windows and QWidget.setMask

2002-04-04 Thread Jonathan Gardner

On Thu, Apr 04, 2002 at 06:45:25PM -0100, Boudewijn Rempt wrote:
 On Thursday 04 April 2002 15:12, you wrote:
  I think QWidget.setMask is what you are looking for. I was interested in
  what it would take to do something with OpenGL and then using a mask,
  and this is it apparently. I haven't actually used it yet, but like all
  things Qt, I doubt there will be a problem.
 
 
 The same question was answered on Usenet, where I answered with
 a working translation of that very example. However, since my 
 computer got fried, I lost that code. But it was very simple, and
 a query on Google might even show the code.
 

It seems Google decided to throw away your attachment in the archives...

I'm curious. The TuXeyes code uses some calls to X to figure out where
the mouse is on the screen. Why did they do that? Can't they just call
QCursor.position()?

Jonathan


___
PyKDE mailing list[EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde