I'm seeing the same issue using Qt 4.3.3 on Open Suse 10.3.
No matter how I set the WindowFlags I can't get rid of the Maximize Button.
I'm using a QMainWindow as a dialog (so I can have menu items and a toolbar) but I'd like it to still look like a fixed size dialog. I tried:
JobEditor *jobEdit = new JobEditor(this); // job editor is a subclass of QMainWindow
jobEdit->setWindowFlags(0);
jobEdit->setWindowFlags(Qt::Dialog);
jobEdit->setAttribute(Qt:WADeleteOnClose);
jobEdit->show();
JobEditor *jobEdit = new JobEditor(this); // job editor is a subclass of QMainWindow
jobEdit->setWindowFlags(0);
jobEdit->setWindowFlags(Qt::Dialog);
jobEdit->setAttribute(Qt:WADeleteOnClose);
jobEdit->show();
To copy to clipboard, switch view to plain text mode
This gives me a window with a help, maximize and close button.
If I change the call to
jobEdit->setWindowFlags(Qt::Dialog|Qt::WindowMinimizeButtonHint);
jobEdit->setWindowFlags(Qt::Dialog|Qt::WindowMinimizeButtonHint);
To copy to clipboard, switch view to plain text mode
I get a window with a maximize and a close button.
All I'd really like to have is a close button and I can't seem to do that.I tried the WindowFlags demo and I can't get just a close button using that either.
edit Sorry for dragging this up. Didn't see the original date was from March. My apologies, but I'm still seeing the problem described here in QT 4.3.3
Bookmarks