Registry /
utility / nayuki-qr-code-generator
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
qrcodegen.hpp
✓ #include <qrcodegen.hpp>
Generate a QR code from text and output as SVG
#include "qrcodegen.hpp"
#include <iostream>
#include <string>
int main() {
const std::string text = "Hello, world!";
const auto qr = qrcodegen::QrCode::encodeText(text.c_str(), qrcodegen::QrCode::Ecc::MEDIUM);
std::cout << qr.toSvgString(4) << std::endl;
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.