I have a QWidget that initially had no parent (i.e. top level window). It defined it's own pallete and fonts.

I decided that I wanted to take advantage of the parent/child cleanup if the main application was destroyed. So I gave this window a parent in it's initializer list and add the following to the constructor.

Qt Code:
  1. setWindowFlags(windowFlags() | Qt::Window); // top-level window
To copy to clipboard, switch view to plain text mode 
I can set a pallete but this window it refusing to accept a new font. If I again remove the parenting then it takes the font.

Ideas?

I initially thought that maybe my style sheets or my custom style were interfering, but I disabled both and the problem persists.