the cast is senseless, just assign to a QDeclarativeContext and connect as you already are