StupidBeauty
Read times:951Posted at:Tue Nov 6 04:59:00 2012
- no title specified

转载Thread: How to disable the scrollbar of QWebView

要隐藏一个QWebView的滚动条,就这样做:TheWebView.page()->mainFrame()->setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwarysOff)。水平方向的滚动条也是同理。

http://www.developer.nokia.com/Community/Discussion/showthread.php?212357-How-to-disable-the-scrollbar-of-QWebView

亮点:

setScrollBarPolicy is a correct way of doing it.

Code:

view->page()->mainFrame()->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands