Resizeable QrCode

This commit is contained in:
tobtoht
2021-07-04 00:06:24 +02:00
parent 758b385aef
commit 1e30b1f4a1
9 changed files with 131 additions and 28 deletions
+17 -1
View File
@@ -164,4 +164,20 @@ QPixmap QrCode::toPixmap(const int margin) const
painter.end();
return pixmap;
}
}
int QrCode::width() {
if (!isValid()) {
return 0;
}
return d_ptr->m_qrcode->width;
}
unsigned char* QrCode::data() {
if (!isValid()) {
return nullptr;
}
return d_ptr->m_qrcode->data;
}