Hi,
I am not able to achieve Kinetic scrolling.
Here is my code:
view = new QWebView();
view->page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);
view->page()->mainFrame()->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);
vlayout=new QVBoxLayout();
vlayout->addWidget(view);
proxy = new QGraphicsProxyWidget(this);
wid=new QWidget();
wid->setFixedSize(QApplication::desktop()->screenGeometry().width(),QApplication::desktop()->screenGeometry().height());
wid->setLayout(vlayout);
wid->show();
scrollArea = new QScrollArea();
scrollArea->setWidgetResizable(true);
scrollArea->setFixedHeight(wid->height());
scrollArea->setFixedWidth(wid->width());
scrollArea->horizontalScrollBar()->setHidden(true);
scrollArea->verticalScrollBar()->setHidden(true);
scrollArea->setWidget(wid);
proxy->setWidget(scrollArea);
MyKineticScroller* myScroller = new MyKineticScroller(this);
myScroller->enableKineticScrollFor(scrollArea);
MyKineticScroller class can be obtained from:
http://www.developer.nokia.com/Commu...implementation
I am able to scroll around the edges of my screen,but not able to scroll the page through middle area of the screen. i would like to apply kinetic scrolling effect.
Thanks

Reply With Quote

