You can hide it using the stylesheet. Use height:0px; hide the horizontal scrollbar and width=0px; hide the vertical scroll bar. Like this:
horizontalScrollBar()->setStyleSheet("QScrollBar {height:0px;}"); verticalScrollBar()->setStyleSheet("QScrollBar {width:0px;}");
And voila !. There are no scroll bars, and you can still control them with setValue() .
Madeofair
source share