1#ifndef MAINWIDGET_H
2#define MAINWIDGET_H
3
4#include <QImage>
5#include <QLabel>
6#include <QWidget>
7
8class MainWidget : public QWidget
9{
10 Q_OBJECT
11
12public:
13 explicit MainWidget(QWidget *parent = nullptr);
14 ~MainWidget() override;
15
16protected:
17 void resizeEvent(QResizeEvent *) override;
18
19public Q_SLOTS:
20 void setImage(QImage image);
21 void setCaption(QString text);
22 void setStatus(QString text);
23
24private:
25 QLabel *m_image;
26 QLabel *m_caption;
27 QLabel *m_status;
28};
29
30#endif // MAINWIDGET_H
31

source code of threadweaver/examples/HelloInternet/MainWidget.h