Dear all,
One of my third party library needs a Qpixmap which should be of ARGB(32) format to enable the transparency. By default in Linux Qpixmap is of 24 bit depth.
I have tried the below method for conversion and passed the Qpixmap, and still it shows as 24 bit depth....How do i create a pixmap of 32 bit depth in Qt.
bool loaded = overlay_image.load ("/aegea.png", 0 );
overlay_map= overlay_map.fromImage ( overlay_image,Qt::AutoColor );
QImage overlay_image(768,768,QImage::Format_ARGB32);
bool loaded = overlay_image.load ("/aegea.png", 0 );
QPixmap overlay_map;
overlay_map= overlay_map.fromImage ( overlay_image,Qt::AutoColor );
To copy to clipboard, switch view to plain text mode
Please advice me..
Bookmarks