{"id":24256054,"url":"https://github.com/kdablabs/qr-code-generator-qml","last_synced_at":"2026-04-20T04:34:29.294Z","repository":{"id":222185178,"uuid":"756413149","full_name":"KDABLabs/QR-Code-Generator-QML","owner":"KDABLabs","description":"QML wrapper for qrcode-svg. Renders QR Codes efficiently in QML.","archived":false,"fork":false,"pushed_at":"2024-02-12T17:57:57.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":30,"default_branch":"main","last_synced_at":"2025-02-24T02:45:45.865Z","etag":null,"topics":["blog","javascript","js","kdab","qml","qrcode","qrcode-generator","qrcode-svg","qt","qt6","qtquick","svg","wrapper"],"latest_commit_sha":null,"homepage":"https://www.kdab.com/?p=33514","language":"QML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KDABLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-12T16:08:06.000Z","updated_at":"2025-01-27T14:52:13.000Z","dependencies_parsed_at":"2024-02-12T20:52:07.176Z","dependency_job_id":null,"html_url":"https://github.com/KDABLabs/QR-Code-Generator-QML","commit_stats":null,"previous_names":["kdablabs/qr-code-generator-qml"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDABLabs%2FQR-Code-Generator-QML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDABLabs%2FQR-Code-Generator-QML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDABLabs%2FQR-Code-Generator-QML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDABLabs%2FQR-Code-Generator-QML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KDABLabs","download_url":"https://codeload.github.com/KDABLabs/QR-Code-Generator-QML/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241908057,"owners_count":20040571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blog","javascript","js","kdab","qml","qrcode","qrcode-generator","qrcode-svg","qt","qt6","qtquick","svg","wrapper"],"created_at":"2025-01-15T04:46:27.956Z","updated_at":"2026-04-20T04:34:24.260Z","avatar_url":"https://github.com/KDABLabs.png","language":"QML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QR-Code-Generator-QML\n\nThis code is from KDAB's blog post [Incredibly Simple QR Generation in QML](https://www.kdab.com/?p=33514).\n\nIt is a QML wrapper for qrcode-svg, which allows for fast and dynamic QR Code generation in the form of SVG data.\n\nDropping [`qrcode.min.js`](qrcode.min.js) and [`QRGenerator.qml`](QRGenerator.qml) into your project's Qt Resources is enough to use this code.\n\nHere's an example of how you might use it to render dynamically:\n\n```js\nimport QtQuick\nimport QtQuick.Window\nimport QtQuick.Controls\n\nWindow {\n    id: root\n\n    visible: true\n\n    QRGenerator {\n        id: qrObj\n        content: txtField.text\n        join: true\n    }\n\n    TextField {\n        id: txtField\n        width: parent.width\n    }\n\n    Image {\n        anchors.top: txtField.bottom\n        source: (qrObj.svgString === \"\") \n                    ? \"\"\n                    : (\"data:image/svg+xml;utf8,\" + qrObj.svgString)\n    }\n}\n\n```\n\nThe code in [`QRGenerator.qml`](QRGenerator.qml) is written in Qt 6 QML, but it can be easily changed to work on Qt 5 by addding version numbers to import statements. For more information, see [this page](https://doc.qt.io/qt-6/qtqml-syntax-imports.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdablabs%2Fqr-code-generator-qml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdablabs%2Fqr-code-generator-qml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdablabs%2Fqr-code-generator-qml/lists"}