… = Window[…] (gb.qt4)
Dim hWindow 
As Window
Dim hControl 
As Control
hControl 
= hWindow 
[ Name As String ]
 
Returns an Object representing a control located in the window from its name.
In order to use the actual control properties in your code you must assign the return to a Control object (or a specific control type) per the syntax above.
The IDE and IDE debugger "hide" the fact that the returned item is an Object by converting the object to a Control. This can cause confusion.