Hi Bas!
As you probably know, it is not possible to use anchoring in this case, as anchoring is only possible to sibling items or the parent in the QML tree.
The solution is to position and size the item manually by setting the x/y and width/height properties accordingly:
import Felgo 3.0
import QtQuick 2.0
GameWindow {
id: gameWindow
activeScene: scene
screenWidth: 960
screenHeight: 640
Scene {
id: scene
width: 480
height: 320
// fills scene
Item {
anchors.fill: parent
// fills gamewindow
Rectangle {
x: scene.gameWindowAnchorItem.x
y: scene.gameWindowAnchorItem.y
width: scene.gameWindowAnchorItem.width
height: scene.gameWindowAnchorItem.height
color: "green"
}
}
}
}
Cheers,
Günther