Scroll, zoom, drag, tooltip, contextual menu and draw in an Image Widget

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


Acknoledgents

This class has been developed in collaboration with Simon Landrault (Eskimon).


Leave a Reply

Your email address will not be published. Required fields are marked *