开发者

QMainDialog become modal if has modal QDialog as parent on Mac OS X

I c开发者_StackOverflowreate QMainWindow with parent widget which is modal QDialog. QMainWindow created as modl window ontop of dialog and doesn't has active close, minimize buttons and has grayed(unaccessable) menu.

I suppose access to QMainWindow's menu restricted since there is QDialog with modal flag active. But I need to have a non modal QMainWindow with menu which can be accessed.

Is it possible? I use qt 4.5.2 and os x lion. Thanks!


I'm having trouble imagining the context in which one would open a QMainWindow parented to a modal QDialog.

However, if you want the QMainWindow to act as a top-level window, don't set a parent.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜