EstervQrCode 1.1.1
Library for qr code manipulation
qr_image_provider.hpp
1 #include <qquickimageprovider.h>
2 
3 
4 #if defined(QTQRGEN_SHARED)
5 #include <QtCore/QtGlobal>
6  #ifdef WINDOWS_EXPORT
7  #define GEN_EXPORT Q_DECL_EXPORT
8  #else
9  #define GEN_EXPORT Q_DECL_IMPORT
10  #endif
11 #else
12  #define GEN_EXPORT
13 #endif
14 
15 namespace Esterv::Utils::QrGen {
16 
17 class GEN_EXPORT QRImageProvider : public QQuickImageProvider
18 {
19 public:
20  QRImageProvider(int erc=0)
21  : QQuickImageProvider(QQuickImageProvider::Pixmap),errC(erc)
22  {
23 
24  }
25 
26  QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
27 private:
28  const int errC;
29 };
30 
31 
32 }
Definition: qr_image_provider.hpp:18
QRImageProvider(int erc=0)
Definition: qr_image_provider.hpp:20
CvSize size
Definition: core_c.h:112
Definition: qrcode_gen.hpp:34