I have the following simple little widget:

AnimatedSquare.h
AnimatedSquare.cpp

Works fine as a top-level widget. As a child widget though, it doesn't work.

What's wrong with it? Any help appreciated.