Dialog with minimize and help button
i'm trying to create a dialog that has only a minimize and a '?' button in the title bar. but whenever i try
ui->setupUi(this);
th开发者_StackOverflow社区is->setWindowFlags(Qt::WindowMinimizeButtonHint );
i get a dialog that has both minimize and maximize buttons. any hints? (no pun intended)
What about this->layout()->setSizeConstraint(QLayout::SetFixedSize)
. This makes the dialog unresizable and removes the min and max button and with your above code you then should get the min button back.
If it's jQuery UI dialog, see my answer here:
https://stackoverflow.com/a/11561470/335514
and fiddle:
http://jsfiddle.net/jasonday/ZSk6L/
精彩评论