Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtSVG module : scaling an item without scaling the stroke (as in Inkscape)



  • Hi everyone,

    I'm the author of the Quantum SVG themable style for Qt (http://kde-look.org/content/show.php/QuantumStyle?content=101088).

    One difficulty in making the SVG styles in that I must divide the frame (e.g. of a button) into its 8 elements separately in the SVG file because the contents get scaled and the scaling must be performed only for the 'interior', not the frame lines.

    Is there a way to tell Qt to scale the SVG element but keep the stroke with the same thickness when using the render() function ? Inkscape knows how to do that


Log in to reply