×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    3

    Selecting and Scrolling in QWebView

    Hi All,

    I'm new to Qt, so this may be wrong, but it seems that the QWebView should support both hyperlink selection and page scrolling out of the box. For example, If I have a page with a list of 30 links, pressing the down button would select the next link and so on until I got to the bottom of the visible page and then pressing the down button would scroll the page.

    However, this doesn't appear to be the case. I loaded a very simple app on my 6790:

    #include <QApplication>
    #include <QtWebkit>
    #include <QWebSettings>
    #include <QUrl>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);
    QApplication::setNavigationMode(Qt::NavigationModeCursorAuto);
    QWebSettings::globalSettings()->setAttribute(QWebSettings::LinksIncludedInFocusChain, true);
    QWebSettings::globalSettings()->setAttribute(QWebSettings::LocalContentCanAccessRemoteUrls, true);
    QWebView view;
    view.load(QUrl("http://www.google.com"));
    view.grabKeyboard();
    view.showMaximized();


    return a.exec();
    }

    But pressing the up/down/left/right keys will not select any other links on the page.

    Is this a permissions issue? A configuration issue? How can I select links on the page loaded into the QWebView?

    Thanks
    -mike

  2. #2
    Registered User
    Join Date
    Apr 2010
    Posts
    32

    Re: Selecting and Scrolling in QWebView


Similar Threads

  1. QWebView
    By atonical in forum Qt
    Replies: 1
    Last Post: 2011-02-13, 19:14
  2. QWebview problem?
    By damodharan in forum Qt
    Replies: 13
    Last Post: 2010-08-10, 09:26
  3. problem with qt4.6 QwebView kinetic scrolling
    By mismael in forum Nokia N9
    Replies: 13
    Last Post: 2010-05-17, 08:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×