PyQt4: QWebView: Custom context menu

  • Assume that I have generated a html document (stored in a string). I can display it using QWebView. For each link (present in the html document), I want to add two options to the context menu (right click action), each of them will send the Url to the main application.

    How can I do that in PyQt4?

    I have read the thread at "Link":, but I am pretty new to Qt and not very comfortable with C++.

    An example in Python would be the best.

    Thanks in advance!

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.