Bug 432330

Summary: Incorrect rendering of SVG
Product: [Applications] gwenview Reporter: physkets <physkets>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: abcdjdj
Priority: NOR    
Version: 20.12.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: An SVG with a zoomed-in portion displayed separately.

Description physkets 2021-01-31 04:25:26 UTC
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.
Comment 1 physkets 2021-01-31 04:26:34 UTC
Created attachment 135319 [details]
An SVG with a zoomed-in portion displayed separately.
Comment 2 Madhav Kanbur 2021-02-01 09:20:55 UTC
This appears to be an upstream bug in QT itself. I've filed a bug report here - https://bugreports.qt.io/browse/QTBUG-90803
Comment 3 Madhav Kanbur 2021-02-04 08:16:57 UTC
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.
Comment 4 Madhav Kanbur 2021-02-04 08:17:29 UTC

*** This bug has been marked as a duplicate of bug 336436 ***