Is there any way to make the pixmap on a QDrag object be semi-transparent?

Here is the code I've got right now:

################################################

def startDrag(self, supportedActions):
    drag = QDrag(self)

    pixmap = QPixmap("/path/to/my/image.png")
    alphaChannel = QPixmap(pixmap.width(), pixmap.height())
    alphaChannel.fill(QColor(128, 128, 128))
    pixmap.setAlphaChannel(alphaChannel)

    drag.setPixmap(pixmap)

    drag.exec_(supportedActions)

################################################

However, setting the alpha channel on the pixmap just makes it look faded,
but doesn't actually show the window contents underneath the pixmap, so it's
not really transparent.
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to