A widget to show images.
More...
#include <image_widget.h>
|
|
QImage | image_qt |
| |
|
Image | image |
| |
|
QRectF | image_rect |
| |
A widget to show images.
This widget automatically scales the image it is supposed to display to the correct size.
- See also
- Image
-
StreamWidget
-
StreamObject
◆ newObject()
◆ paintEvent()
| void ImageWidget::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotectedvirtual |
Paint the widget.
- Parameters
-
See QWidget::paintEvent
Reimplemented in SparseWidget.
◆ qwidget()
| QWidget * ImageWidget::qwidget |
( |
void |
| ) |
|
|
overridevirtual |
Convert this widget to a QWidget.
- Returns
- The QWidget
Implements StreamWidget.
◆ recalcImageRect()
| void ImageWidget::recalcImageRect |
( |
double |
w, |
|
|
double |
h |
|
) |
| |
|
protected |
Recalculates the image dimensions after a resize.
- Parameters
-
| w | The new width of the bounding rect |
| h | The new height of the bounding rect |
◆ resizeEvent()
| void ImageWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
Called on a resize event.
- Parameters
-
See QWidget::resizeEvent
The documentation for this class was generated from the following files: