Commit 2a2c2d28 authored by pieper's avatar pieper
Browse files

ENH: add web instpector option to web view example

Supports better introspection html/css/javascript internals.

Thanks for finding this Luca!

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21515 3bd1e089-480b-0410-8dfb-8563597acbee
parent a4bf7db2
......@@ -246,6 +246,7 @@ with point index of {pointIndex}
<a href="chart">Run chart test</a>
"""
self.webView.setHtml(html)
self.webView.settings().setAttribute(qt.QWebSettings.DeveloperExtrasEnabled, True)
self.webView.page().setLinkDelegationPolicy(qt.QWebPage.DelegateAllLinks)
self.webView.connect('linkClicked(QUrl)', self.webViewCallback)
self.webView.show()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment