How to open an url in a Konqueror plugin as if it was a link ?

Dawit A. adawit at kde.org
Thu Mar 18 15:06:27 GMT 2004


On Tuesday 16 March 2004 17:33, Shift wrote:
> Hi all,
>
> I need to know how to submit an URL from a Konqueror plugin as if it was a
> link of a page.
> (See the TODO list of the plugin :
> http://shift.freezope.org/konq_rellinks/development_html )
> I don't know how to send the referer :-(

You can also use KParts::URLArgs to send the referrer assuming, you know the 
referring URL, which I am guessing you do...

KParts::URLArgs args;
args.metadata()["referrer"] = "the-referrer-url";
part->browserExtension()->openURLRequest(url, args);

-- 
Regards,
Dawit A.
"Preach what you practice, practice what you preach"




More information about the kfm-devel mailing list