开发者

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

开发者 https://www.devze.com 2023-04-09 02:00 出处:网络
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(un

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

精彩评论

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