[Qt-interest] QWebView and right click

Abhishek abhishekworld at gmail.com
Tue Nov 24 15:45:58 CET 2009


Hi Felipe,

Right Click means Context Menu and in QWidget setContextMenuPolicy (
Qt::ContextMenuPolicy ) where you can set the policy to Qt::NoContextMenu as
the QWebView is inherits QWidget this should work for you.

check out this link for your reference
http://doc.trolltech.com/4.5/qwidget.html#contextMenuPolicy-prop .

--
Abhishek

On Tue, Nov 24, 2009 at 7:50 PM, Felipe Coutinho
<felipelcoutinho at gmail.com>wrote:

> Hello,
>
> When we create a link at a qwebview and we click at it with the mouse right
> button appears a box with these options:
> * open link
> * open in a new window
> * save link...
> * copy link
> Does anyone knows how can I disable this box?
>
> Thanks,
>
> Felipe.
>
> --
> Felipe Leal Coutinho
> http://felipelcoutinho.googlepages.com/
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
Abhishek Patil

"Imagination is more important than knowledge..." -Albert Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091124/ed283f77/attachment.html 


More information about the Qt-interest-old mailing list