Results 1 to 2 of 2

Thread: QWebView catching the linkClicked for use as a filter.

  1. #1
    Join Date
    Feb 2014
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default QWebView catching the linkClicked for use as a filter.

    Hi,

    I have set the delegation policy of a QWebpage in a QWebview to DelegateAllLinks, however say I am only interested in delegating a small subset of links that do not fall into the External Link Category.

    What is the best way to tackle this kind of problem in QT.

    Qt Code:
    1. Psuedo:
    2. //linkClicked Signal caught by slot
    3. mySlot(url){
    4. if( url == notinterested ){
    5. // handle like QT is not catching these --> pass to page
    6. } else if( url == TheBerryIWant ){
    7. // handle by some other component
    8. }
    9. }
    To copy to clipboard, switch view to plain text mode 

    Now I want to catch these links as early as possible, before the http Get is issued for its retrieval.


    Ideas?

  2. #2
    Join Date
    Oct 2013
    Location
    Quebec
    Posts
    31
    Thanks
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QWebView catching the linkClicked for use as a filter.

    Hey there,

    Not sure if you found the solution or not, but I had it working this way :
    http://qt-project.org/forums/viewthread/50299/

    Good luck!

Similar Threads

  1. Filter QWebView to show only selected objects.
    By anupam in forum Qt Programming
    Replies: 2
    Last Post: 24th February 2014, 08:43
  2. QWebView linkClicked
    By migel in forum Newbie
    Replies: 1
    Last Post: 13th January 2014, 21:12
  3. linkCLicked Signal .
    By divanshu in forum Newbie
    Replies: 2
    Last Post: 5th July 2011, 06:28
  4. linkClicked signal
    By maston in forum Qt Programming
    Replies: 13
    Last Post: 7th September 2010, 20:26
  5. QWebView linkclicked and form submit
    By maddog_fr in forum Qt Programming
    Replies: 9
    Last Post: 8th August 2009, 20:03

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.