简体   繁体   English

QFileDialog工作表

[英]QFileDialog sheets

Is it possible to display QFileDialog::getSaveFileName() as a sheet on Mac OS? 是否可以在Mac OS QFileDialog::getSaveFileName()显示为表格?

Setting the parent widget does not seem to help, I'm using Qt5. 设置父窗口小部件似乎没有帮助,我正在使用Qt5。

Edit: @troyane suggest something along the lines: 编辑:@troyane建议大致如下:

QFileDialog dialog(this);
dialog.setWindowModality(Qt::WindowModal);
dialog.setResult(0);
dialog.show();

but it crashes... I must be doing something wrong, though not sure what exactly... 但它崩溃了...我一定做错了,尽管不确定到底是什么...

Try this: 尝试这个:

Hope, this will help! 希望这会有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM