Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. PyQt4: QWebView: Custom context menu
QtWS25 Last Chance

PyQt4: QWebView: Custom context menu

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    huynhlv_54
    wrote on last edited by
    #1

    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":http://qt-project.org/forums/viewthread/15149, but I am pretty new to Qt and not very comfortable with C++.

    An example in Python would be the best.

    Thanks in advance!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved