API Documentation
|
A widget that shows a raster image or icon. More...
#include <ImageView.h>
Public Types | |
enum | ViewMode { e_keep , e_zoom_in , e_zoom_out , e_stretch } |
Public Member Functions | |
void | clearImage () |
QIcon | icon () |
ImageView (const String &image, QWidget *parent=nullptr) | |
ImageView (QWidget *parent=nullptr) | |
QSize | minimumSizeHint () const override |
void | paintEvent (QPaintEvent *event) override |
void | resizeEvent (QResizeEvent *resize_event) override |
void | setAlignment (Qt::Alignment alignment) |
void | setAutoResize (bool auto_resize) |
void | setBlendFactor (fltp04 blend_factor) |
void | setBlendImage (const QPixmap &blend_image) |
void | setForceAspectRatioH (bool force) |
void | setForceAspectRatioW (bool force) |
void | setIcon (const QIcon &image, QIcon::Mode mode=QIcon::Mode::Normal) |
void | setIconID (const String &image, bool force_refresh=false) |
void | setIconMode (QIcon::Mode mode) |
void | setIgnoreDPR (bool ignore) |
void | setImage (const QImage &image) |
void | setImage (const QPixmap &pixmap) |
void | setImageID (const String &image, bool force_refresh=false) |
void | setImageScale (fltp08 scale) |
void | setSizeHintPixelMetric (QStyle::PixelMetric metric) |
void | setSmoothResize (bool smooth_resize) |
void | setViewMode (ViewMode mode) |
QSize | sizeHint () const override |
~ImageView () | |
A widget that shows a raster image or icon.
enum ViewMode |
ImageView | ( | QWidget * | parent = nullptr | ) |
~ImageView | ( | ) |
void clearImage | ( | ) |
|
inline |
|
inlineoverride |
|
override |
|
override |
void setAlignment | ( | Qt::Alignment | alignment | ) |
|
inline |
void setBlendFactor | ( | fltp04 | blend_factor | ) |
void setBlendImage | ( | const QPixmap & | blend_image | ) |
void setForceAspectRatioH | ( | bool | force | ) |
void setForceAspectRatioW | ( | bool | force | ) |
void setIcon | ( | const QIcon & | image, |
QIcon::Mode | mode = QIcon::Mode::Normal ) |
void setIconID | ( | const String & | image, |
bool | force_refresh = false ) |
void setIconMode | ( | QIcon::Mode | mode | ) |
void setIgnoreDPR | ( | bool | ignore | ) |
void setImage | ( | const QImage & | image | ) |
void setImage | ( | const QPixmap & | pixmap | ) |
void setImageID | ( | const String & | image, |
bool | force_refresh = false ) |
|
inline |
void setSizeHintPixelMetric | ( | QStyle::PixelMetric | metric | ) |
|
inline |
|
inline |
|
override |