This post demonstrates an image widget for Qt. The class rOg_image supports the following features:
- display a QImage in the widget
- display a raw image in the widget
- support smart resize
- mouse wheel zoom in, zoom out
- drag image with mouse
- right button contextual menu
- overload to draw over the image (background or foreground)
- overload to display tool-tip over the image
Download

Display an image with Qt 62.55 KB
Acknoledgents
This class has been developed in collaboration with Simon Landrault (Eskimon).