[Qt-interest] Semi-transparent pixmap
Jugdish
jugdizh at gmail.com
Wed Feb 24 18:59:47 CET 2010
I'm trying to use a semi-transparent pixmap with a drag event. When the drag
is started, I create a QDrag object and then set a pixmap on it with
QDrag::setPixmap(). For some reason, the pixmap's alpha channel is not
respected if it is semi-transparent; the pixmap is painted completely
opaque. However, it *does* respect completely transparent pixels if, for
example, I do something like QPixmap::createMaskFromColor(). So I know that
the painter is looking at the pixmap's alpha channel when painting it, but
for some reason it seems to only acknowledge 0 or 1 alpha values.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100224/12ab803d/attachment.html
More information about the Qt-interest-old
mailing list