Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Custom QGraphicsWebView - scrollbars always on

Custom QGraphicsWebView - scrollbars always on

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Peppy
    wrote on last edited by
    #1

    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++) ?

    1 Reply Last reply
    0
    • P Offline
      P Offline
      Peppy
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved