title: Display SVG image in QtWebView with the right size
body: <p>I'm trying to display some Wikipedia articles containing math in <code>SVG</code> images
  in QtWebView, though I can't figure out how to set <code>width</code> and <code>height</code> attributes of the image. <code>QtWebView</code> will ignore these attributes and when I
  omit them the image is very small.</p>
  
  <p>You can test it as follows:
  Download <a href="https://github.com/gen2brain/pyhtmleditor" rel="nofollow noreferrer">this</a> HTML editor.
  Go to <a href="https://en.wikipedia.org/wiki/Linear_algebra" rel="nofollow noreferrer">this</a> web page and download e.g. <a href="https://wikimedia.org/api/rest_v1/media/math/render/svg/e15d3619d42b28662c5952c9ece60cd928e31774" rel="nofollow noreferrer">this</a> SVG image.</p>
  
  <p>Create img element, reflecting the styling in Wikipedia:</p>
  
  <pre><code>&lt;img src="e15d3619d42b28662c5952c9ece60cd928e31774.svg" style="vertical-align: -0.671ex; width:25.517ex; height:2.343ex;"&gt;
  </code></pre>
  
  <p>And the image will be ignored.</p>
  
  <p>The following works, but the image is very small.</p>
  
  <pre><code>&lt;img src="e15d3619d42b28662c5952c9ece60cd928e31774.svg" &gt;
  </code></pre>
  
  <p>How to display the image with the right size (width and height)?</p>