I'm trying to automate an old Qt 4 application (for which I don't have the source code). If I run the application before running Spy++, Qt does not create window handles for child widgets. If I run the application after Spy++, window handles are created for child widgets like buttons and I can find them with FindWindow.
What is Spy++ doing to make Qt create child window handles and how can I do that in my own program?