[Qt-interest] QWebView linkClicked event.

Shabd Swarup V shabd at cadence.com
Wed Feb 25 18:02:47 CET 2009


Thanks.

I got the click working using the linkClicked event. Any ideas how we
can do a right-click on a hyperlink?

Please suggest.

Regards,
Shabd

-----Original Message-----
From: Joel A. Iturra P. [mailto:tortuguero at gmail.com] 
Sent: Wednesday, February 25, 2009 2:17 AM
To: Shabd Swarup V
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] QWebView linkClicked event.

Hi,

maybe you can use javascript ?

something like

webView()->page()->mainFrame()->evaluateJavascript("window.document.getE
lementById('A_element').click();");

I don't really know if you can do "click" with javascript, but maybe
work




On Sun, Feb 22, 2009 at 11:07 AM, Shabd Swarup V <shabd at cadence.com>
wrote:
> Hi,
>
>
>
> How can I manually trigger the linkClick(QUrl url) event on a
QWebView?
>
> I have the object of QWebView available and I have the URL which is to
be
> opened.
>
>
>
> Please suggest.
>
>
>
> Thanks,
>
> Shabd
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>



-- 
Joel A. Iturra
Santiago - Chile




More information about the Qt-interest-old mailing list