MacOS Ventura 13.5.2 native dialog not working
Unsolved
General and Desktop
-
Hello I have been trying to use QFileDialog to open the macOS dialog from qt with this code
QString ImagePath = QFileDialog::getOpenFileName(this, tr("Select Image"), QCoreApplication::applicationDirPath(), tr("Image Files (*.jpg *.png)"));
which when the code was executed caused the program the crashed.
I did manage to make the code work by using qt's dialog for filesQString ImagePath = QFileDialog::getOpenFileName(this, tr("Select Image"), QCoreApplication::applicationDirPath(), tr("Image Files (*.jpg *.png)"), 0, QFileDialog::DontUseNativeDialog);
My question is if I am doing anything wrong and how can I fix this issue
Thanks!
-
Hi,
Which version of Qt is triggering that ?
-
@DeadSo0ul Please provide a minimal compilable example that shows the behaviour.
I have just tested QFileDialog and had no issue with it.