Vladimir123
22nd May 2011, 18:11
Hello.
I'm having a problem with overloading QWebPage::extension().
Here's my subclass:
class WebPage : public QWebPage
{
Q_OBJECT
public:
explicit WebPage(QObject *parent = 0);
QString userAgentForUrl ( const QUrl & url ) const;
bool extension(Extension extension, const ExtensionOption *option = 0, ExtensionReturn *output = 0);
};
However extension overload doesn't get called when loadFinished() is invoked with ok == false. What am I doing wrong?
I'm having a problem with overloading QWebPage::extension().
Here's my subclass:
class WebPage : public QWebPage
{
Q_OBJECT
public:
explicit WebPage(QObject *parent = 0);
QString userAgentForUrl ( const QUrl & url ) const;
bool extension(Extension extension, const ExtensionOption *option = 0, ExtensionReturn *output = 0);
};
However extension overload doesn't get called when loadFinished() is invoked with ok == false. What am I doing wrong?