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. QWebView - Scrolling / PageDown
Forum Updated to NodeBB v4.3 + New Features

QWebView - Scrolling / PageDown

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.9k 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.
  • McLionM Offline
    McLionM Offline
    McLion
    wrote on last edited by
    #1

    Hi

    Can I somehow scroll down a webpage with a signal to QWebView?

    Thanks
    McL

    1 Reply Last reply
    0
    • G Offline
      G Offline
      guziemic
      wrote on last edited by
      #2

      Hi,

      You can try to set scroll position on QWebFrame - "doc":http://doc.qt.digia.com/qt/qwebframe.html#scrollPosition-prop

      1 Reply Last reply
      0
      • McLionM Offline
        McLionM Offline
        McLion
        wrote on last edited by
        #3

        I'm on Qt 4.3 which does not support it.
        Any other idea?
        Could that be done with a QWheelEvent?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Macro
          wrote on last edited by
          #4

          Check the Scroll Position of the Page's Main frame...

          @QPoint currentPosition = webView->page()->mainFrame()->scrollPosition();

          if (currentPosition.y() == webView->page()->mainFrame()->scrollBarMinimum(Qt::Vertical))
          {
          qDebug() << "Start Scroll Position";
          }

          if (currentPosition.y() == webView->page()->mainFrame()->scrollBarMaximum(Qt::Vertical))
          {
          qDebug() << "End Scroll Position";
          }
          @

          1 Reply Last reply
          0
          • McLionM Offline
            McLionM Offline
            McLion
            wrote on last edited by
            #5

            ... and how would that help me with scrolling down?

            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