SUMMARY An SVG image with a 'zoomed-in' portion displayed in a separate patch does not render correctly. The new window should show the zoomed-in version, but only inside the window. Gwenview displays the zoomed-in structures even outside it. Other viewers display this correctly (eg. Firefox). STEPS TO REPRODUCE Attached is such an image. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.20.5 KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.11-arch1-1 OS Type: 64-bit Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics Memory: 14.9 GiB of RAM Graphics Processor: AMD RENOIR ADDITIONAL INFORMATION This SVG was generated using Matplotlib.
Created attachment 135319 [details] An SVG with a zoomed-in portion displayed separately.
This appears to be an upstream bug in QT itself. I've filed a bug report here - https://bugreports.qt.io/browse/QTBUG-90803
I'm not too hopeful of things getting fixed upstream since Qt Svg doesn't have full svg support and should be replaced by a better renderer. QT themselves recommend using QtWebKit (now superseded by QtWebEngine) - https://bugreports.qt.io/browse/QTBUG-12588?focusedCommentId=123082&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-123082 I'm gonna mark this as a duplicate and try porting the code to QtWebEngine.
*** This bug has been marked as a duplicate of bug 336436 ***