Hi! I want to create programm, which will do something like this using QWebKit:
Qt Code:
  1. for(int counter=0;counter<10;counter++)
  2. {
  3. //
  4. // loading page http://website.com/page/counter/
  5. // for example if counter==3, then load page http://website.com/page/3/
  6. // then get all keywords from current page and insert them to array keywords[]
  7. // then get some data for each keyword
  8. for(int c=0; c<keywords.size(); c++)
  9. {
  10. // load page http://google.com/search/query=keywords[c]
  11. // for example if keyword[1]==car then page will be: http://google.com/search/query=car
  12. // then get some info from page and go to next keyword
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 
The problem is that loading of pages need some time. And i can't get any info from page before loadFinished signal. But how can fuction which is connected to signal know what to do with current page? It can be http://website.com/page/3/ or http://google.com/search/query=car and depending on page it shoud do different things. So i want to pass some extra data to function, which is connected to signal. So it will know what to do with current page. How can i do this?