Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can i select text in qwebkit , and get the html Behind the selection ?
Qt 6.11 is out! See what's new in the release blog

How can i select text in qwebkit , and get the html Behind the selection ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.2k 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.
  • U Offline
    U Offline
    umen242
    wrote on last edited by
    #1

    where to start or what do i need to do , to be able to select text with my mouse in the qwebkit view .
    and to be able to get html/css Behind the selection ?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      KA51O
      wrote on last edited by
      #2

      Take a look at "this":http://doc.qt.nokia.com/4.7/webkit-simpleselector.html. It doesn't do exactly what you want, but its a good example for the use of QWebElement.

      You could modify the example to use the selected text instead of using a text from a line edit. "QWebView::selectedText()":http://developer.qt.nokia.com/doc/qt-4.8/qwebview.html#selectedText-prop is what you may be looking for.

      1 Reply Last reply
      0
      • U Offline
        U Offline
        umen242
        wrote on last edited by
        #3

        looks like what im looking for

        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