Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in
read-only mode
.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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 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:
use
QGraphicsProxyWidget
to wrap your scrollbar for adding to scene and place it on scene to necessary place with
QGraphicsScene::addItem()
use
QGraphicsScene::addWidget()
with your
QScrollBar
instance as argument.