Widgets and graphics items have different ways of using the geometry so it is natural you will get different results when setting the same values. Widgets always have a rectangle of (0,0,width(), height()) whereas graphics items do not. The origin of the coordinate system of the black graphics item lies outside of the item itself thus the red item is positioned to the left and up of its parents top left corner.