Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.4
-
None
-
f9686bc68696ad1e99a0587f15d05300d003d990
Description
From C++
QQuickItem *myItem = new QQuickItem;
myItem->mapToGlobal(QPointF(0,0));
From QML
import QtQuick 2.0 Item { width: 400 height: 400 Component { id: rectComponent Rectangle {} } Component.onCompleted: { var obj = rectComponent.createObject(null); obj.mapToGlobal(0,0) } }