This is exactly what I have too. Nevertheless I get the following error:
`error C2228: left of '.setInput()' must have class/struct/union`