The limitation of "my" approach (which is not really mine, I think we copied it from some other Qt resource) is only a drawback if you intend to have more than one window of some type opened at the same time.