PDA

View Full Version : help with QPainter::setCompositionMode()



thawkins
25th May 2006, 19:22
I'm just playing around with QPainter and get the following message on the console:

QPainter::setCompositionMode(), composition modes not supported on device

whenever I use QPainter::setCompositionMode(). For example, I tried

painter.setCompositionMode(QPainter::CompositionMo de_SourceOver);

What else do I need to set up on my system. I am using Qt 4.0.1 on an X11 based linux box

munna
25th May 2006, 19:25
You can only set the composition mode for QPainter objects that operates on a QImage.

wysota
25th May 2006, 20:47
That's not exactly true. You can use composition modes for QPainter if you have the Compositemodule enabled in your X server.

thawkins
25th May 2006, 21:58
That's not exactly true. You can use composition modes for QPainter if you have the Compositemodule enabled in your X server.

I'm a bit of a linux idiot, would you have any ideas on how to do that?

wysota
25th May 2006, 22:56
http://gentoo-wiki.com/TIP_Xorg_X11_and_Transparency