1#ifndef TBQ_WIDGETS_QLABELSCL_H
2#define TBQ_WIDGETS_QLABELSCL_H
4#include "toolboxqt/toolboxqt_global.h"
17 explicit LabelScl(QWidget *parent =
nullptr);
20 const QPixmap& getPixmap()
const;
21 QPixmap getPixmapScaled()
const;
23 void animPlay(
bool start);
28 void setImg(
const QPixmap &pixmap);
29 void setImg(
const QImage &img);
30 void setImg(
const QImage *img);
32 void setAnimation(
const QString &animation);
34 void setTextAlt(
const QString &text);
37 virtual int heightForWidth(
int width)
const override;
38 virtual QSize sizeHint()
const override;
41 void resizeEvent(QResizeEvent *event)
override;
44 void updateMovieFrame();
48 using QLabel::setMovie;
54 std::unique_ptr<QMovie> m_anim;
Label that will properly scale image or animation.
Definition: labelscl.h:13