Mookie
12th January 2011, 19:57
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.
setWindowFlags(windowFlags() | Qt::Window); // top-level window
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.
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.
setWindowFlags(windowFlags() | Qt::Window); // top-level window
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.