O'Reilly logo

Computer Vision with OpenCV 3 and Qt5 by Amin Ahmadi Tazehkandi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The QPixmap class

The QPixmap class is in some ways similar to QImage, but QPixmap is intended to be used when we need to display images on the screen. QPixmap can be used to load and save an image (just like QImage) but it doesn't provide the flexibility to manipulate image data, and we'll also use it only when we need to display any images after we're done with all our modifications, processing, and manipulation. Most QPixmap methods have the same name as QImage methods and they are basically used in an identical manner. Two functions that are important for us and don't exist in QImage are as follows:

  • convertFromImage: This function can be used to fill the QPixmap data with image data from a QImage
  • fromImage: This is a static function ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required