StupidBeauty
Read times:931Posted 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

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4