Important: Please read the 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 (

    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