Custom QGraphicsWebView - scrollbars always on



  • Hi guys, I have got a question for you: When I derive a new WebView from QGrapgicsWebView, there are always shown scrollbars, is there any posibility to remove them in (C++) ?



  • Solved:
    @
    QWebFrame* windowFrame = this->page()->mainFrame();
    windowFrame->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);
    windowFrame->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);--
    @

    okay, so I have removed the scrollbars, but I don't want to make site bounded into the view area, is it possible?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.