1
votes

Is it possible to display QFileDialog::getSaveFileName() as a sheet on Mac OS?

Setting the parent widget does not seem to help, I'm using Qt5.

Edit: @troyane suggest something along the lines:

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...

1

1 Answers

0
votes

Try this:

Hope, this will help!