开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜