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. scroll to text on the webpage
Forum Updated to NodeBB v4.3 + New Features

scroll to text on the webpage

Scheduled Pinned Locked Moved General and Desktop
qgraphicswebvie
1 Posts 1 Posters 562 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.
  • E Offline
    E Offline
    ejos
    wrote on last edited by
    #1

    I am using QGraphicsWebView to display the html page.

    There is a search text. I am highlighting the search text using,
    page()->findText(schtext, QWebPage::HighlightAllOccurrences);
    Also I am showing the line where the searched text is found in a list view , since there can be more than one occurrence of the search text.
    on clicking the line, I am navigating to the page where the line is present.

    How to scroll to the text on the particular page.

    I tried findtext() and triggeraction(QWebPage::moveToPreviousLine) but of no help

    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