Hello.

I'm having a problem with overloading QWebPage::extension().
Here's my subclass:
Qt Code:
  1. class WebPage : public QWebPage
  2. {
  3. Q_OBJECT
  4. public:
  5. explicit WebPage(QObject *parent = 0);
  6.  
  7. QString userAgentForUrl ( const QUrl & url ) const;
  8. bool extension(Extension extension, const ExtensionOption *option = 0, ExtensionReturn *output = 0);
  9. };
To copy to clipboard, switch view to plain text mode 

However extension overload doesn't get called when loadFinished() is invoked with ok == false. What am I doing wrong?