Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QFileDialog, if cancel pressed
Q139 last edited by
Is it possible know if cancel was pressed in filedialog without filedialog instance?
QDir dir = QFileDialog::getExistingDirectory(this, "Select folder", loadFileDirSet("folderSave"),QFileDialog::ShowDirsOnly);
That method returns a QString, check that the return string is not null and you'll know if it was cancelled.
Q139 last edited by Q139
@SGaist Yes , using QDir is wrong there , but it gives easy acess to