title: Subclassed QWebView doesn't react to Hyperlink Clicks
body: <p>This is in Python/PySide.</p>
  
  <p>I am trying to create my own Parental WebBrowser by overloading the PySide.QtWebKit.QWebView widget. Then whenever someone clicks a link on the widget I check to see if we are going to an invalid website, if not we proceed, if yes then I redirect to a generic page.</p>
  
  <p><strong>So I have subclassed the PySide.QtWebKit.QWebView, but I am not receiving notification of when a link is clicked. I have overridden the linkClicked function but the function never runs when a link is clicked?</strong></p>
  
  <p>What am I doing wrong? Why cant my function run/react to the hyperlink click "event"? Do I need to override the webpage object &amp; not this class to react to link clicks?</p>
  
  <pre><code>import PySide.QtWebKit
  import sys
  from PyQt4 import QtGui
  
  
  class BrowserWindow( PySide.QtWebKit.QWebView ):
      # Class Variables:
  
      def __init__( self, _parent ):
          """ Constructor: """
  
          super(BrowserWindow, self).__init__()
          PySide.QtWebKit.QWebView(None)
  
  
      def linkClicked(self, arg__1):
          """ Post: """
  
          #print("LINK CLICKED")
          #text, ok = QtGui.QInputDialog.getText(self, 'Input Dialog', 
          #    'Enter your name:')
  
          self.load("http://yahoo.com")
  
  
  def main():
  
      app = QtGui.QApplication(sys.argv)
  
      view = BrowserWindow(None) #PySide.QtWebKit.QWebView(None)
      view.load("http://google.com")
      view.show()
  
      sys.exit(app.exec_())
  
  
  if __name__ == '__main__':
      main()
  </code></pre>