Set the windowTitle property instead of using setCaption().