Results 1 to 2 of 2

Thread: QWebPage::extension

  1. #1
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QWebPage::extension

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QWebPage::extension

    Reimplement supportsExtension() as well.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 4th March 2011, 14:48
  2. using qmotif extension
    By pascasio in forum Newbie
    Replies: 7
    Last Post: 30th November 2010, 13:53
  3. Unwanted downloads with QWebPage/QWebPage
    By ouekah in forum Newbie
    Replies: 6
    Last Post: 11th May 2010, 22:48
  4. How to use qwebpage in non-gui app
    By Cykus in forum Newbie
    Replies: 4
    Last Post: 10th May 2010, 11:35
  5. Can QWebPage see changes in a website
    By probine in forum Qt Programming
    Replies: 3
    Last Post: 15th August 2009, 23:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.