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. Modifying QWebView's copy behaviour
Forum Updated to NodeBB v4.3 + New Features

Modifying QWebView's copy behaviour

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 730 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    Angivare
    wrote on last edited by
    #1

    Hello! I currently have a QWebView, everything is working correctly except the copy behaviour: when the user copy anything from the webview, some selected images should be processed into keywords and the rest should be formatted to plain text.

    So I figured out I would do something like getting the action that copies the selection and link it to something else, like:

    @QAction* act = view->pageAction(QWebPage::Copy);
    act->disconnect();
    connect(act, SIGNAL(triggered()), this, SLOT(copy()));@

    However, the QAction* that pageAction returns seems to be constant, so I guess I can't go that way.. So how else could I do this?

    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