27 bool sizeChanged = ( p.
size() != mPixmap.
size() );
36 Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
52 int w = this->
width();
60 Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
virtual QSize sizeHint() const override
An optimal size for the widget.
void setPixmap(const QPixmap &)
void setPixmap(const QPixmap &)
virtual int heightForWidth(int width) const override
Calculates the height for the given width.
QPixmap scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
void resizeEvent(QResizeEvent *) override
QgsPixmapLabel(QWidget *parent=nullptr)