[英]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: 尝试这个:
QFileDialog
without using the static functions. 在不使用静态函数的情况下创建自己的QFileDialog
。 For more information see official documentation . 有关更多信息,请参见官方文档 。 Hope, this will help! 希望这会有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.