[webkit-qt] How to register an application as a specific url schema handler in QtWebKit
benjamin.poulain at nokia.com
Wed Apr 28 04:49:35 PDT 2010
ext colin121 wrote:
> Does anybody know how to register an application as your custom protocol
> handler in WebKit/QtWebKit/arora?
> Please let me know if there is an easy one, really appreciate your work.
> I'm considering using QtWebkit in an embed device to demonstrate my own
> web page.
> In my page, I have some links which have specific shema, like:
> when users click such link, I want to launch a local application to
> handle this url.
> I know in Windows, browsers usually read these configures from registry.
> So how about the implementation of WebKit in Linux?
> implementing PolicyDecisions ?
> Netscape-Style Plug-ins£¿
> WebKit¨CBased Plug-ins£¿
> any suggestions would be usable :-)
In Arora, have a look at
webpage.cpp->WebPage::acceptNavigationRequest(). You can also use
To open an url with the default application register on the platform,
you can use QDesktopServices::openUrl().
More information about the webkit-qt