Custom widget, looks like scroll bar on QGraphicsView



  • Hi all.

    I have a problem. I have an Inheriter of QGraphicsScene and QGraphicsView displaing it.
    I want to display a widget which looks like scroll bar, i mean having arrow buttons, being always in the bottom/side of the scene.
    But if i add my custom widget to a view by setVerticalScrollBar() I lost control on it. I can't set it enabled, when I need, etc.

    What I need to do?

    Edit: fixed typo in title; mlong



  • If you didn't understand, what I am taling about, write it please.



  • If you need this scrollbar-like widget to be part of your scene, you may use one of two options to place an instance of QScrollBar on it:


Log in to reply