01.05.2017, 10:03, "Frank Rueter | OHUfx" <[email protected]>: > 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 > [email protected] > http://lists.qt-project.org/mailman/listinfo/interest -- Regards, Konstantin _______________________________________________ Interest mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/interest
