If you want a widget that is a standalone window, don't pass a pointer to the parent in the constructor. There is another way to obtain the same effect, but you shouldn't need it.