You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, July 14th 2008, 8:19am

webkit open link

Hi all,

I'm trying to use webkit in my application, I can open a website with webview, but when I click the link, nothing happens.

I have tried to override QWebpage::acceptNavigationRequest, but I never got in this function. what's wrong here?

I have tried using QWebView::linkClicked signal, and I've done setLinkDelegationPolicy(QWebPage:DelegateAllLinks) to webpage, but I never got the signal.

any guy please help me?

many thanks,

Leslie

2

Monday, July 14th 2008, 2:48pm

WebKit works for me. Qt 4.4.0, xp. Googled links is opened. Checkout firewall, proxy settings.
Though it is still not finished because does not support plugins (flash of course) and java.
Fighting fire with fire.
Three can keep a secret if two of them are dead.

3

Monday, August 3rd 2009, 6:46pm

RE: webkit open link

Hi all,

I'm trying to use webkit in my application, I can open a website with webview, but when I click the link, nothing happens.

I have tried to override QWebpage::acceptNavigationRequest, but I never got in this function. what's wrong here?

I have tried using QWebView::linkClicked signal, and I've done setLinkDelegationPolicy(QWebPage:DelegateAllLinks) to webpage, but I never got the signal.

any guy please help me?

many thanks,

Leslie
Actualy it work except with form submit !
connect the signal with

Source code

1
connect( view->page(), SIGNAL(linkClicked(const QUrl&)),this, SLOT(OnLinkClicked(const QUrl&)));

u also need to define your slot correctly