Ok, thanks. I got it to work. I don't know what I did wrong yesterday but it seems to be fine now.

Cheers,
frank

On 1/05/17 8:44 PM, Konstantin Tokarev wrote:

01.05.2017, 10:03, "Frank Rueter | OHUfx" <fr...@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@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

--
Regards,
Konstantin

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to