Here are some options:
- constrain the width:height ratio of the widget so that the content is rendered in that ratio by default; or
- derive from the QSvgWidget, reimplement paintEvent and use QSvgRenderer to paint the SVG within the limits you want.
Here are some options:
- constrain the width:height ratio of the widget so that the content is rendered in that ratio by default; or
- derive from the QSvgWidget, reimplement paintEvent and use QSvgRenderer to paint the SVG within the limits you want.
Bookmarks