[Interest] QGraphicsView: Moving items causes the viewport center to change

Alan Ezust alan.ezust at gmail.com
Tue Feb 17 18:22:05 CET 2015


The default behavior in QGraphicsView, if you have 2 movable items in the
scene, and you click and drag one of them, then the viewport is recentered
in order to show both items without adding a scrollbar.
But if you move the item far enough away from the first, then the
scrollbars appear and this behavior stops.

A customer does not like this default behavior of recentering the viewport
during item moves and would like to completely disable it.
Is there an easy way to do that? Basically, when you move an item, that's
the only one they want to see moving.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150217/9ea581c0/attachment.html>


More information about the Interest mailing list