@@ -0,0 +1,1016 @@
+class MyWebView(QWebView):%0A    def __init__(self, *args, **kwargs):%0A        super(MyWebView, self).__init__(*args, **kwargs)%0A    %0A    def mousePressEvent(self, evt):%0A        wpage = self.page()%0A        wframe = wpage.mainFrame()%0A        hte = wframe.hitTestContent(evt.pos())%0A        element = hte.element()%0A        print evt.pos(), element.tagName()%0A        if element.attribute('fill') == 'white':%0A            element.setAttribute('fill', 'gray')%0A        else:%0A            element.setAttribute('fill', 'white')%0A        super(MyWebView, self).mousePressEvent(evt)%0A%0A##%0A%0Awview = MyWebView()%0Awview.setWindowFlags(WindowStaysOnTopHint)%0AsvgData = open(%22F:%5Cwebkit.svg%22).read()%0Awview.setHtml(svgData)%0Awview.setZoomFactor(0.9)%0Awview.show()%0Awpage = wview.page()%0Awframe = wpage.mainFrame()%0Awdocument = wframe.documentElement()%0Asvg = wdocument.findFirst('svg')%0A%0Afor element in svg.findAll('g'):%0A    ellipse = element.findFirst('ellipse')%0A    ellipse.setAttribute('fill', 'white')%0A    ellipse.setAttribute('stroke-width', '1')%0A

Create qtwk_qwv_subclass_test.py