Hi, 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: > custom://abc.com/xxx. > 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 ? > http://diotavelli.net/PyQtWiki/Adding%20the%20Gopher%20Protocol%20to%20QtWebKit > 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 handleUnsupportedontent(). To open an url with the default application register on the platform, you can use QDesktopServices::openUrl(). cheers, Benjamin
_______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
