Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [SOLVED] QGraphicsView hide scroll bar without disabling it
Forum Update on Monday, May 27th 2025

[SOLVED] QGraphicsView hide scroll bar without disabling it

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 6.3k Views
  • 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.
  • B Offline
    B Offline
    BlackMamba
    wrote on 7 Oct 2013, 11:56 last edited by
    #1

    Hello,

    I have 2 QGraphicsViews with the same height and with vertical scroll bars.
    I connected the scroll bars together that they move at the same time. However, I want to hide the scroll bar in the second view. Just hiding, but it still needs to be scrolling ...

    Any idea?

    Thanks

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BlackMamba
      wrote on 7 Oct 2013, 12:33 last edited by
      #2

      ui->graphicsView->scrollHorizontalBar()->hide() works sorry about that ...

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NicuPopescu
        wrote on 7 Oct 2013, 14:22 last edited by
        #3

        graphicsView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff) should do the same ...

        1 Reply Last reply
        0

        1/3

        7 Oct 2013, 11:56

        • Login

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