In QGraphicsView, using the default scrollbar policy Qt::ScrollBarAsNeeded, I observe that the scrollbars do not always appear as needed. In border cases, they seem not to.

In particular, when one of both scrollbars is visible, the fact that this scrollbar is visible is not taken into account for determining when the other scrollbar must be displayed. For instance, when the horizontal scrollbar is visible, it may be the case that some of my contents is underneath the scrollbar, but not outside the window, without the vertical scrollbar is shown. That is, the content height would be entirely visible if the horizontal scrollbar would not be present.

And even if both scrollbars are visible, it is inpossible to scroll to the scene contents that lies the most to the right or the bottom of the scene.

Is this a bug, or am I doing something wrong?