Results 1 to 2 of 2

Thread: cancle right click context menu in qtwebkit

  1. #1
    Join Date
    May 2009
    Posts
    83

    Default cancle right click context menu in qtwebkit

    Hello all
    i just started to learn about qtwebkit ( and qt in general )
    i build simple application that load html page via rc file
    all works fine , the only thing i need now is to cancel the right click menu ( that contains the back and reload functions )
    how can i do it ?
    Thanks

  2. #2
    Join Date
    Aug 2009
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: cancle right click context menu in qtwebkit

    this->setContextMenuPolicy(Qt::NoContextMenu);
    where this is ur webview instance should disable the menu.

Similar Threads

  1. problem with Context Menu in QTableWidget
    By andreime in forum Newbie
    Replies: 6
    Last Post: 7th September 2015, 08:44
  2. Context Menu on QTableWidget
    By ankurjain in forum Qt Programming
    Replies: 9
    Last Post: 17th December 2009, 09:52
  3. Custom context menu in QTreeView
    By ttvo in forum Qt Programming
    Replies: 5
    Last Post: 3rd April 2009, 22:29
  4. Shortcut key for context menu
    By darshan.hardas in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2008, 20:32
  5. Replies: 4
    Last Post: 25th June 2007, 20:40

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.