What you are trying to do, tends to be used in "Grouped" items.

There are several mapTo* functions including:

http://doc.qt.io/qt-5/qgraphicsitem.html

QPointF mapToItem(const QGraphicsItem * item, const QPointF &amp; point) const
QPointF mapFromItem(const QGraphicsItem * item, const QPointF &amp; point) const
QPointF mapFromScene(const QPointF &amp; point) const
QPointF mapToScene(const QPointF &amp; point) const


Basically the context you are calling the mapping function from changes the behavior of the mapping call.

If you are inside a subclass of QGraphicsItem, and you call this-&gt;mapToItem(myRect, QPointF(0,0)); it will return a value in terms of the coordinate system of the Rectangle.

And likewise, ff you are inside a subclass of QGraphicsItem, and you call this-&gt;mapFromItem(myRect, QPointF(0,0)); it will return a value in terms of the coordinate system of the original item, where 0,0 is the upper left of the rectangle.

Here is more documentation on the coordinate system:

http://doc.qt.io/qt-5/graphicsview.html#the-graphics-view-coordinate-system

But if you are grouping objects in a QGraphicsView, group them and move the group around.

http://doc.qt.io/qt-5/graphicsview.html#item-groups

http://doc.qt.io/qt-5/qgraphicsitemgroup.html#details

Hope that helps.

How to use local coordinates to a QGraphicsItem
Since System76 is the largest vendor for consumer PCs with Ubuntu pre-installed, are questions about their products allowed if they don't concern the OS in particular? That would include


What usb3 or e-stata drives actually work with their laptops
What peripherals work with particular system76 machines.
How/should I upgrade the BIOS?

