[Qt-interest] QWebView linkClicked event.

Joel A. Iturra P. tortuguero at gmail.com
Tue Mar 3 13:15:46 CET 2009


Hi,

>From QWebPage Manual
http://doc.trolltech.com/4.5/qwebpage.html#createStandardContextMenu

QMenu * QWebPage::createStandardContextMenu ()

This function creates the standard context menu which is shown when
the user clicks on the web page with the right mouse button. It is
called from the default contextMenuEvent() handler. The popup menu's
ownership is transferred to the caller.

This function was introduced in Qt 4.5.



maybe this method can help you.





On Wed, Feb 25, 2009 at 2:02 PM, Shabd Swarup V <shabd at cadence.com> wrote:
> 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
>



-- 
Joel A. Iturra
Santiago - Chile



More information about the Qt-interest-old mailing list