PDA

View Full Version : Display DIB data



nightroad
29th December 2010, 14:58
Hi there,

Let me know, what is the best(fastest) way to show DIB data from memory on any qcomponent(qlabel, qimage, qpixmap ... etc.)

high_flyer
29th December 2010, 15:11
what do you mean?
do you want the image data, or the underlying device context structure data, or something else?
For the image data have a look at QImage::bits().

ChrisW67
29th December 2010, 21:42
Are QPixmap::loadFromData() with format = "BMP" and then QLabel::setPixMap() or an equivalent what you are looking for?