I have an RGBA image in memory that I want to paint on QGLWIdget.
In order to do this, I form BMP image with an alpha channel in memory, and pass it to QPixmap::loadFromData:
pixmap = new QPixmap(szx, szy);
pixmap->loadFromData(bmp_data, sz_bmp, "BMP");
Resulting pixmap doesn't have an alpha channel (hasAlpha returns false), and paints as if there is no alpha.
When I save the same bmp into a file, gimp shows it with an alpha channel.
Why QPixmap::loadFromData doesn't load an alpha channel?
How can I display the computed bitmap with an alpha channel?