From 8be10721eeaedcb76675686c72f7f27ee59c15f1 Mon Sep 17 00:00:00 2001 From: gregory Date: Thu, 8 May 2025 15:58:19 -0400 Subject: [PATCH] =?UTF-8?q?QSvgRenderer=20has=20internal=20limits=20on=20p?= =?UTF-8?q?ath=20complexity=20or=20buffer=20size=20=E2=80=94=20hitting=20t?= =?UTF-8?q?hose=20leads=20to=20the=20truncation=20warning.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/QrCodeGenerator.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/QrCodeGenerator.cpp b/src/QrCodeGenerator.cpp index 49a55a1..c934d31 100644 --- a/src/QrCodeGenerator.cpp +++ b/src/QrCodeGenerator.cpp @@ -126,8 +126,10 @@ QString QrCodeGenerator::toSvgString(const qrcodegen::QrCode &qr, // return image; // } -// QR code image is being rendered from SVG output, not directly from bitmaps or -// matrices + +// QR code image is being rendered from SVG output, not directly from bitmaps or matrices +// QSvgRenderer has internal limits on path complexity or buffer size — hitting +// those leads to the truncation warning. // If the generated SVG string is too large or malformed, the QSvgRenderer will // throw warnings. // like: W : qt.svg: Invalid path data; path truncated.