Important: Please read the Qt Code of Conduct -

QWebEnginePage setContent does not render SVG data

  • I use the following to set the page's content and rather than render the svg data it simply displays it as text.

        array = QByteArray().append(content), mimeType=str('text/svg+xml'))

    Anyone know how to actually make it render with setContent?

Log in to reply