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)
        self.mapView.page().setContent(array, mimeType=str('text/svg+xml'))
    
    

    Anyone know how to actually make it render with setContent?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.