[Interest] CSS based pie chart ignored in QWebView

Konstantin Tokarev annulen at yandex.ru
Mon May 1 10:44:59 CEST 2017



01.05.2017, 10:03, "Frank Rueter | OHUfx" <frank at ohufx.com>:
> Hi,
>
> I was hoping to utilise a CSS based pie chart like this in my QWebView to print some reports.
> I copied the css code from the above example to my already implemented local CSS file, but the pie chart wont' display in the QWebView (other css definitions do have a effect).
>
> All I'm doing in the Qt relevant code is this:
>         self.htmlView = QWebView()
>         self.htmlView.settings().setUserStyleSheetUrl(QtCore.QUrl.fromLocalFile('/ohufx/consulting/PreferredMedia/code/report_template.css'))

Did you load HTML part of page?
This CSS should work, just try loading your codepen URL into QWebView

>
> Is this a limitation of QWebView or am I missing something?
> I have attached the css file.
>
> Cheers,
> frank
>
> --
>
>   vfx compositing | workflow customisation and consulting
>
> Your gateway to over 1,000 free tools... right inside of Nuke
> ,
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


-- 
Regards,
Konstantin



More information about the Interest mailing list