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).
Hello,
I have a QGraphicsScene bigger than the QGraphicsView I am setting the scene in.
So, by default, it adds scroll bars, vertical and horizontal in my case.
The issue I have is that the scene is centered into the view and the scroll bars initial positions are in the middle on X axis and Y axis.
I would like that on the X axis, the scroll bar is at the extreme left instead of in the middle. How could I do that?
Thanks
Thank you it works ! Once thing strange still is that when I do :
ui->graphicsViewS->horizontalScrollBar()->setSliderPosition(
ui->graphicsViewS->horizontalScrollBar()->minimum());
it is also setting the minimum value for the verticalScrollBar ... Any idea why?