38 QRCodeQWidget(
const QByteArray &text,
const QSize &
size, QWidget *parent =
nullptr);
43 void setMargin(
const int margin);
52 void setIcon(
const QString &path,
float percent);
61 void setIconPercent(
float percent);
65 float iconPercent()
const;
70 void setCaseSensitive(
bool flag);
74 bool caseSensitive()
const;
79 void setText(
const QByteArray &text);
83 QByteArray text()
const;
88 void setForegroundColor(
const QColor &color);
92 QColor foregroundColor()
const;
97 void setBackgroundColor(
const QColor &color);
101 QColor backgroundColor()
const;
125 virtual void paintEvent(QPaintEvent *event)
override final;
133 #endif // QRCODEWIDGET_H
#define TTK_MODULE_EXPORT
QRecLevel
Level of error correction.
#define TTK_DECLARE_PRIVATE(Class)
QRencodeMode
Encoding mode.