24 lines
439 B
C++
24 lines
439 B
C++
#ifndef QRCODELABEL_H
|
|
#define QRCODELABEL_H
|
|
|
|
#include "precompiled.h"
|
|
|
|
class QRCodeLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit QRCodeLabel(QWidget *parent = nullptr);
|
|
virtual QSize sizeHint() const;
|
|
|
|
void setQrcodeString(QString address);
|
|
QPixmap scaledPixmap() const;
|
|
public slots:
|
|
void resizeEvent(QResizeEvent *);
|
|
|
|
private:
|
|
QString str;
|
|
};
|
|
|
|
|
|
#endif // QRCODELABEL_H
|