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.

Qt Code:
  1. QImage overlay_image(768,768,QImage::Format_ARGB32);
  2.  
  3. bool loaded = overlay_image.load ("/aegea.png", 0 );
  4.  
  5. QPixmap overlay_map;
  6.  
  7. overlay_map= overlay_map.fromImage ( overlay_image,Qt::AutoColor );
To copy to clipboard, switch view to plain text mode 

Please advice me..